|   
				
			 | 
			
 		
 
 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]  
  
 
	
 
	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.
			 |