Photon
06 January 2005, 15:37
Hm. I need to wait for raster line $129 on my A500. Currently I do this:
wait: move.w $dff004,d0
btst #0,d0
beq.s wait
wait2: move.b $dff006,d0
cmp.b #$29,d0
bne.s wait2
;timed code follows
My copper has a $ffdffffe command, so the raster goes beyond $100.
But it doesn't work, the routine is called when the raster reaches $029. How should I do it? Any tips appreciated. :)
wait: move.w $dff004,d0
btst #0,d0
beq.s wait
wait2: move.b $dff006,d0
cmp.b #$29,d0
bne.s wait2
;timed code follows
My copper has a $ffdffffe command, so the raster goes beyond $100.
But it doesn't work, the routine is called when the raster reaches $029. How should I do it? Any tips appreciated. :)