|  | Atari coding BBS
 
 
 
| DSP DIV question | 
|---|
 
| Posted by: Thadoss | Jun,21.2013-23:27 |  
| Hi,
 
 I'm playing with the DSP and I encounter a problem with the div I don't understand.
 
 I want to divide B by Y1 :
 
 B: B2: 00  B1: 01e000  B0: 000000
 Y1: 000100
 
 My code is :
 
 andi	#$fe,ccr
 rep	#24
 div	y1,b
 move	b0,b
 
 
 I would expect the result to be $1e0, but I get :
 
 B: B2: 00  B1: 03bf00  B0: 7ffe20
 
 Does someone sees what is wrong in my div ?
 
 Regards
 
 Laurent
 
 
 |  
 
 
 
 
 [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.
 |