View Single Post
Old 15 August 2012, 10:10   #31
phx
Natteravn

phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 1,107
Quote:
Originally Posted by dalton View Post
Code:
    bset.b    #0,flags(pc)
Your approach is recommendable, although the PC-relative addressing mode is not allowed here.

In Sqrxz I am incrementing a frame counter during a copper interrupt, caused at the bottom of the display. The rendering routine can then compare its frame counter with the hardware frame counter and decide to either drop the frame, when the hw-counter is higher, or wait until both are equal again.
phx is offline  
 
Page generated in 0.03941 seconds with 11 queries