Motorola DSP96002 User Manual page 691

32-bit digital signal processor
Table of Contents

Advertisement

;
tmp1 = register name of the form "Dn", and is a temporary var which
;
uses the lowest 32 bits of the register (Dn.L is destroyed)
;
tmp2 = register name of the form "Dn", and is a temporary var which
;
uses the lowest 32 bits of the register (Dn.L is destroyed)
;
; Note that op, tmp1, and tmp2 must all be different registers.
andi
jclr
ori
_chkrst move
move
and
tst
jneq
tst
jneq
tst
jneq
ori
jmp
_maxexp move
cmp
jne
bclr
tst
jneq
andi
ori
jmp
_chknan move
cmp
jne
_nan
andi
ori
jset
ori
_done
endm
; ****** Reset Processor Flags ******
movec
move
and
movec
B-172
#$c3,ccr
#31,op.h,_chkrst
#$8,ccr
op.h,tmp1.l
#EXP_MSK,tmp2.l
tmp2,tmp1
op
_chknan
tmp1
op.m,tmp2.l
_maxexp
tmp2
_chknan
#$4,ccr
_done
#MAX,tmp2.l
tmp1,tmp2
op.m,tmp1.l ;
_done
#31,tmp1.l
tmp1
_nan
#$b,ccr
#$10,ccr
_done
#MAX,tmp2.l
tmp1,tmp2
_done
#$b,ccr
#$20,ccr
#30,op.m,_done
#$20,er
sr,d0.l
#SR_MASK,d1.l
d1,d0
d0.l,sr
DSP96002 USER'S MANUAL
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents