|
Atari coding BBS
carry overflow step decision |
Posted by: ROGer
|
Mar,08.2025-14:02
|
I have a word-sized (constant) fractional value in a data register (d0) and sum that up in a loop (add.w d0,dn) and everytime the carry bit is set I take action (e.g. moving one step in x direction). Is there a (smart) way to do this with "rounding"? So to say - and if I am not mistaken - to take action when the carry condition is fulfilled to its half? Could the overflow bit be of value?
|
[All messages in this thread] [Start new thread]
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|