Dead Hackers Society
Other BBSes »
 
 
Demoscene   Coding   CT60   Buy/sell

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]

Topic Posted by  Date 
carry overflow step decision ROGer Mar,08.2025-14:02
  Re: carry overflow step decision tat Mar,09.2025-13:41
    Re: carry overflow step decision mikro Mar,10.2025-10:27
  Re: carry overflow step decision ggn Mar,09.2025-13:43
  Re: carry overflow step decision ggn Mar,09.2025-14:04
    Re: carry overflow step decision ROGer Mar,10.2025-15:44
      Re: carry overflow step decision ROGer Mar,10.2025-21:12


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

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.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson