View Single Post
Old 31 March 2010, 16:15   #8
Join Date: Jul 2008
Location: Sweden
Posts: 2,265
Looks perfectly fine to me, and it's both safe for all displays up to 512 scanlines and guaranteed to only run once per frame, as opposed to a single wait that might run several times if the other code in the loop finishes in less than 1 scanline.

I use this, works with any operand like WaitLine D3, #$FF, (A0)+ etc.

WaitLine  macro
.\@       move.l    vposr(a6), d0
          lsr.l     #1, d0
          lsr.w     #7, d0
          cmp.w     \1, d0
          bne       .\@
Leffmann is offline  
Page generated in 0.04384 seconds with 11 queries