Apologies for ressrecting this thread after a couple of years but after some testing with Rygar on much faster cards I came a cropper of this... basically very fast routines such as fades and transitions would screw up because they all trigger and run on line 303.
Code:
.vpos: move.l VPOSR(a5),d0
and.l #$1ff00,d0
cmp.l #303<<8,d0 ; Wait for line 303
bne.b .vpos
rts
I've modified the Wait for Vertical Blank routine to wait for the line and then to reach at least near to the end of the horizontal line. It seems OK but wondered if anyone else has insights on a better way, or even if this isn't a good way to do it?
Code:
move.l VPOSR(a5),d0
and.l #$1ff00,d0
cmp.l #303<<8,d0 ; Wait for line 303
bne.b .vpos
.hpos: move.w VHPOSR(a5),d0
cmp.b #208,d0 ; Horizontal position...
blt.s .hpos
[/CODE]
Geezer