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

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]

Topic Posted by  Date 
DSP DIV question Thadoss Jun,21.2013-23:27
  Re: DSP DIV question dml Jun,22.2013-05:28
    Re: DSP DIV question dml Jun,22.2013-05:31
      Re: DSP DIV question sqward Jun,22.2013-17:50
    Re: DSP DIV question Thadoss Jun,22.2013-18:10
      Re: DSP DIV question dml Jun,22.2013-20:02
      Re: DSP DIV question Patrice Mandin Jun,25.2013-20:24
        Re: DSP DIV question Thadoss Jul,01.2013-18:48


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