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

Atari coding BBS
 
Re: DSP DIV question
Posted by: sqward Jun,22.2013-17:50 

this probably isn't optimal, but it worked for integer division

;a0 input, y0 input, a0 output

div_a abs a a2,y:<div_temp
andi #$fe,ccr
rep #24
div y0,a
move #0,a1
jclr #23,y0,no_neg
neg a
no_neg jclr #7,y:<div_temp,no_neg2
neg a
no_neg2
rts







[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