Motorola DSP96002 User Manual
Page 670
MOTOROLA
DSP96002 USER’S MANUAL
B-151
d1=class(d0)
Program ICycles
Words
ftst d0 ;test d0 1 1
fjor _notnan ;jump if ordered 2 3
jset #5,er,_tsnan ;check signaling nan bit 2 3
jmp _tqnan ;quiet nan 2 2
_notnan
fjne _notz ;jump if not zero 2 3
fjmi _tmzer ;type is minus zero 2 3
jmp _tpzer ;type is plus zero 2 3
_notz
fjninf _finite ;jump if finite 2 3
fjmi _tminf ;minus infinity 2 3
jmp _tpinf ;plus infinity 2 2
_finite
fjge _pos ;see if positive 2 3
jset #30,d0.h,_tmdnrm ;denormalized 2 3
jmp _tmnorm ;normalized 2 2
_pos
jset #30,d0.h,_tpdnrm ;denormalized 2 3
jmp _tpnorm ;normalized 2 2
_tpinf
inc d1 1 1
_tpnorm
inc d1 1 1
_tpdnrm
inc d1 1 1
_tpzer
inc d1 1 1
_tmzer
inc d1 1 1
_tmdnrm
inc d1 1 1
_tmnorm
inc d1 1 1
_tminf
inc d1 1 1
_tqnan
inc d1 1 1
_tsnan --- ---
Totals: 38 *