MOTOROLA
DSP96002 USER’S MANUAL
B-145
SP
→
I
Program ICycles
Words
i nt d0 ;convert to integer 1 1
jset #20,sr,_error ;jump if invalid op set 2 3
--- --
- 3 4
SP
→
U
Program ICycles
Words
intu d0 ;convert to integer 1 1
jset #20,sr,_error ;jump if invalid op set 2 3
--- ---
3 4
B.3
IEEE RECOMMENDED FUNCTIONS AND PREDICATES
The following functions are recommended by the IEEE-754 standard but are not required.
Functions that require explicit knowledge of the variable precision and may lead to families of functions on
high level languages are 4, 5, and 10. Functions 1 and 2 have an arithmetic form (signals IOP if the source
is a NaN) and a non-arithmetic form.
B.3.1 Copysign(x,y)
Copysign(x,y) returns y with the sign of x.
Arithmetic Implementation Of
Copysign(d1,d0)
Program ICycles
Words
fcopys.s d1,d0 ;copy sign of d1 to d0 1 1
--- ---
Totals: 1 1
Non-Arithmetic Implementation Of
Copysign(d1,d0)
Program ICycles
Words
bclr #31,d0.h ;clear sign bit 2 2
jclr #31,d1.h,_bitclr ;sign bit clear 2 3
bset #31,d0.h ;set sign bit 2 2
_bitclr --- ---
Totals: 6 7
43
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: ......