MOTOROLA
DSP96002 USER’S MANUAL
B-163
and d7,d2 ; remove implied one bit
tst d2 ; check m0.high = zero
jne _nan0 ; jump if nan
tst d0 ; check m0.low = zero
jne _nan0 ; jump if nan
move #emsk,d7.l ; get exponent mask
move d1.h,d5.l ; get exp1
and d7,d5 ; delete tags
cmp d7,d5 ; check for max exp
jne _inf1 ; jump if a1 is not inf or NaN
;
; Check if Addend 1 is Infinity
;
_mant2 move #imsk,d7.l ; get infinity mask
and d7,d3 ; remove implied one bit
tst d3 ; check m1.high = zero
jne _nan1 ; jump if nan
tst d1 ; check m1.low = zero
jne _nan1 ; jump if nan
jclr #0,d6.l,_binf ; jump if a0 and a1 are inf
ori #$10,ccr ; set infinity bit
jmp _done ; a1 is infinity
;
; Check for Case: (+Inf) + (-Inf) = QNaN
;
_inf1 ftfr.x d0,d1 ; move result to d1
ori #$10,ccr ; set infinity bit
jmp _done ; a0 is infinity
_binf ftst d0 ; check sign of a0
jmi _minf ; jump if a0 is -inf
ftst d1 ; check sign of a1
jmi _inan ; (+inf) + (-inf) = QNaN
ori #$10,ccr ; set infinity bit
jmp _done ; a0 and a1 are +inf
_minf ftst d1 ; check sign of a1
jpl _inan ; (-inf) + (+inf) = QNaN
ori #$10,ccr ; set infinity bit
jmp _done ; a0 and a1 are -inf
;
; Check for NaN
;
_nan0 jclr #30,d0.m,_inan ; jump if a0 is a SNaN
move #emsk,d7.l ; get exponent mask
move d1.h,d5.l ; get exp1
and d7,d5 ; delete tags
cmp d7,d5 ; check for max exp
jne _qnan ; jump if a1 is not a NaN
move #imsk,d7.l ; get infinity mask
and d7,d3 ; remove implied one bit
tst d3 ; check mant1.high = zero
jne _nan1 ; jump if a1 is a NaN
tst d1 ; check mant1.low = zero
jeq _qnan ; jump if a1 is infinity
_nan1 jset #30,d1.m,_qnan ; jump if a1 is a QNaN
Summary of Contents for DSP96002
Page 3: ...1 2 DSP96002 USER S MANUAL MOTOROLA ...
Page 38: ...MOTOROLA DSP96002 USER S MANUAL 3 15 Figure 3 4 Modulo Arithmetic Unit Block Diagram ...
Page 39: ...3 16 DSP96002 USER S MANUAL MOTOROLA ...
Page 53: ...4 14 DSP96002 USER S MANUAL MOTOROLA ...
Page 76: ...MOTOROLA DSP96002 USER S MANUAL 5 23 Figure 5 8 Address Modifier Summary ...
Page 86: ...6 10 DSP96002 USER S MANUAL MOTOROLA ...
Page 101: ...MOTOROLA DSP96002 USER S MANUAL 7 15 Figure 7 9 HI Block Diagram One Port ...
Page 140: ...7 54 DSP96002 USER S MANUAL MOTOROLA ...
Page 166: ...9 10 DSP96002 USER S MANUAL MOTOROLA ...
Page 181: ...MOTOROLA DSP96002 USER S MANUAL 10 15 Figure 10 8 Program Address Bus FIFO ...
Page 337: ...MOTOROLA DSP96002 USER S MANUAL A 149 ...
Page 404: ...A 216 DSP96002 USER S MANUAL MOTOROLA PC xxxx D ...
Page 460: ...A 272 DSP96002 USER S MANUAL MOTOROLA SIOP Not affected ...
Page 484: ...A 296 DSP96002 USER S MANUAL MOTOROLA SSH PC SSL SR SP 1 SP ...
Page 519: ...MOTOROLA DSP96002 USER S MANUAL A 331 ...
Page 718: ...MOTOROLA DSP96002 USER S MANUAL B 199 ...
Page 871: ... MOTOROLA INC 1994 MOTOROLA TECHNICAL DATA SEMICONDUCTOR M Addendum ...
Page 888: ...MOTOROLA INDEX 1 INDEX ...
Page 889: ......