[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: killing time in 6502 assembly



Andre Fachat <fachat@vandyke.physik.tu-chemnitz.de> wrote:

> And again, what others mentioned, in some parts of the world you'd 
> even get (N+0.5)/50th of a second, which is about 17% off.
> 

Whoops!  I thought I had mentioned that, sorry!

> The most correct way would be to determine the clock frequency
> of the machine (by testing whether it is an NTSC or PAL machine)
> and then compute the exact number of cycles for the amount of time
> to wait and set a CIA timer with it.

Agreed.  Totally forgot about the CIA timers as well.

-- 
Cyberad/RPG aka Patrick M Pritchard * http://www.interlog.com/~cr
PLUR- Peace Love Unity Respect -Live It, Love It, Be It, BELIEVE!
RENEGADE PROGRAMMING GROUP IN 1999 -- Taking It To The Next Level