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

Atari coding BBS
 
Re: carry overflow step decision
Posted by: mikro Mar,10.2025-10:27 

I think he meant something like this:

add.w d0,dn ; d0 contains a constant 0.16 fixed point value less than one
bcs move_to_right


However this feel very inefficient, using addx and reversed int/frac part would certainly be more usable here.

As ggn said, rounding can be done with just pre-adding the 0.5 value to your d0.







[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