Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > lucky timing. stable rasterirq without stablelize routine
2009-02-01 20:36
Testa
Account closed

Registered: Oct 2004
Posts: 197
lucky timing. stable rasterirq without stablelize routine

hi,

i was looking through some old code of my and i found an old demopart witch has open sideborders, music, and i didn't use any stablelize routine... it is 16 years ago and i still don't know how this works...

the demo that i am talking about is explicit and the part is called... noteparty.. it starts at hex 4000 ...

the part is terrible but the logo is nice... anyway,
it uses a normal interupt setup and the irq vector is directly pointed to the sideborder rastercode.. no problem at all...

how is this possible...


2009-02-01 20:41
chatGPZ

Registered: Dec 2001
Posts: 11127
automagic stableness by doing read/modify/write instructions on a rasterline with 4 sprites ? :)
2009-02-01 20:54
Testa
Account closed

Registered: Oct 2004
Posts: 197
well. i honestly don't know how it works and how save it is... but it is stable on a real c64 and in vice...

2009-02-01 22:56
Devia

Registered: Oct 2004
Posts: 401
sprites are automatic stabilizers if used correctly.. check out Sprite synchronisation for some related info.
2009-02-02 11:13
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
Ofcourse this works.

Its how we made demos in 1987..

open border:

irq=line $80

ldx #7
.dex
bne .
nop
nop
nop
ldx #4
dec $d016
inc $d016
nop
..nop
bit $fc
nop
dex
bne ..
...
...
...

adjust the first ldx
adjust the 2nd ldx
adjust the number of nops

keep fiddling until it works

Not so hard afterall :)
2009-02-02 11:37
algorithm

Registered: May 2002
Posts: 702
can do an inc at the right moment on a badline to stabilise? or force a badline (which may produce garbage)
2009-02-02 16:06
Testa
Account closed

Registered: Oct 2004
Posts: 197
well i didn't know that it is possible to get the damm thing stablelized with four sprites on a rasterline with some read/mod/store instuctions.. i found a thread about this topic now... but thanks...

RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
csabanw
jamespurcell
Higgie/Kraze/Onslaught
Guests online: 344
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Wafer Demo  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Webmasters
1 Slaygon  (9.7)
2 Perff  (9.6)
3 Morpheus  (9.5)
4 Sabbi  (9.5)
5 CreaMD  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.036 sec.