Motorola DSP96002 User Manual page 663

32-bit digital signal processor
Table of Contents

Advertisement

checking on the source and either jump to an error handling procedure or return a valid result. The pro-
grams provided may vary depending on the application.
The following data types and abbreviations will be used:
I - Signed 32 bit integer
U - Unsigned 32 bit integer
SP - Single precision floating-point
All conversion examples assume that the value to be converted is in d0 if floating-point or in d0.l if fixed
point.
tst
jmi
float.s
tst
jmi
floatu.s
B-144
I
U
d0
_negerr
I
SP
d0
U
I
d0
_toobig
U
SP
d0.1
DSP96002 USER'S MANUAL
;check for in range
;if negative, error
;convert to SP float
;see if msb is set
;if set, too big
;convert
Program ICycles
Words
1
1
1
2
---
---
2
3
Program ICycles
Words
1
1
---
---
1
1
Program ICycles
Words
1
1
1
2
---
---
2
3
Program ICycles
Words
1
1
---
---
1
1
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents