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

Atari coding BBS
 
Re: DSP DIV : I'm lost
Posted by: mikro Jul,03.2013-07:03 

I'm pretty sure the master aka Doug :) will give you an exhausting explanation and mathematical background, for now you can stick with my lame answer -- don't forget the div instruction is for FRACTIONAL division. That means rep #24 works in cases when source < destination, for example 1/100. In that case you can really do (IIRC):

andi #$fe,ccr ; clear carry
move #1,a
move #100,y0
rep #24
div y0,b ; result in b0

Then signed numbers, S >= D come into play and that's where the real fun begins :)









[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
DSP DIV : I'm lost Thadoss Jul,02.2013-23:25
  Re: DSP DIV : I'm lost mikro Jul,03.2013-07:03
    Re: DSP DIV : I'm lost Thadoss Jul,03.2013-18:42
      Re: DSP DIV : I'm lost dml Jul,04.2013-20:07
        Re: DSP DIV : I'm lost mikro Jul,05.2013-07:23


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