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