| |
Fungus
Registered: Sep 2002 Posts: 624 |
PAL/NTSC Half Variance Stable Raster
I needed such a routine, and this is based on JackAssers, which also looks very very similar to crossbows. So I whipped this up real quick.
Hope someone can add it to codebase.
ldx #$38
cpx $d012
bne *-3
ldy #$09
dey
bne *-1
cmp #$ea ;ntsc with nop nop
bit $ea
nop
inx
cpx $d012
beq branch1
nop
nop
branch1
ldy #$09
dey
bne *-1
cmp #$ea ;ntsc with nop nop
bit $ea
nop
inx
cpx $d012
beq branch2
bit $ea
branch2
ldy #$09
dey
bne *-1
cmp #$ea ;ntsc with nop nop
nop
nop
inx
cpx $d012
bne branch3
branch3
|
|
| |
JackAsser
Registered: Jun 2002 Posts: 1989 |
I got "mine" from Krill. |
| |
Fungus
Registered: Sep 2002 Posts: 624 |
Hah cool, the first time I saw it was from crossbow in one of his demos. I was aware of it, but didn't get how it worked until I read your article. |
| |
chatGPZ
Registered: Dec 2001 Posts: 11135 |
BTW - "Crossbows" IIRC is actually Hannes Sommer's - published in 64er many moons ago (He also published the lightpen-trigger stable raster thing there, and the $D011 "wanker" i believe)
I think i learned it from Marko's article that explained stable raster using an auxiliary timer. Maybe. :) |
| |
Krill
Registered: Apr 2002 Posts: 2851 |
And because it's not as widely known as it should be: i'm using Quiss+Copyfault's ingenious 8-byte sync method whenever i can. =) |
| |
chatGPZ
Registered: Dec 2001 Posts: 11135 |
beware of broken emulators :) |
| |
Krill
Registered: Apr 2002 Posts: 2851 |
Quoting chatGPZbeware of broken emulators :) The other way around. Broken eumlators, beware! =) |
| |
chatGPZ
Registered: Dec 2001 Posts: 11135 |
you make Ian cry :( |
| |
Oswald
Registered: Apr 2002 Posts: 5023 |
btw never occured to me until now, but wtf is half variance |
| |
chatGPZ
Registered: Dec 2001 Posts: 11135 |
each "step" in the above code halves the jitter (variance), until it gone |
| |
mankeli
Registered: Oct 2010 Posts: 110 |
Fixed link to Quiss+Copyfault's ingenious 8-byte sync method |
... 4 posts hidden. Click here to view all posts.... |
Previous - 1 | 2 - Next |