aprentice
Moderator
refraction said:now your trying to confuse meright so i need a routine incrementing that and checking it for overflow got it.
thats the DIV register that increments right?
TIMA increments in 1/4 the time of DIV if TAC is set to 4096 (which is 1/4 the number of times DIV updates)
that sound right to you?
thisd be so much easier if you could contact me on msn![]()
you dont need to check for overflow with div's, it can wrap around by itself. tima is a different story though, i posted my div function above, very easy to follow code
to figure out how many cycles to incrament TIMA its 4194304 / TAC frequency.