Motorola DSP96002 User Manual page 590

32-bit digital signal processor
Table of Contents

Advertisement

Four 8 Bit Packs
joinb
joinb
join
B.1.38.2
Pack Two 16 Bit Words Into a 32 Bit Word
The following packs two 16 bit words into a single 32 bit word. The words to be packed are right justified in
two separate registers:
d0 = xY
Two 16 Bit Packs
join
B.1.38.3
Unpack a 32 Bit Word Into Four Sign-extended Bytes
The following unpacks a 32 bit word into four 8 bit sign-extended bytes in separate registers.
Four 8 Bit Unpacks
move
split
splitb d1,d0
extb
splitb d3,d2
extb
B.1.38.4
Unpack a 32 Bit Word Into Two Sign-extended 16 Bit Words
The following unpacks a 32 bit word into two 16 bit sign-extended 16 bit words.
Two 16 Bit Unpacks
move
split
ext
MOTOROLA
d0,d1
;d1 = xxAB
d2,d3
;d3 = xxCD
d1,d3
;d3 = ABCD
d1 = xZ
d0,d1
;d1 = YZ
#data,d3.l
d3,d1
d1
d3
#data,d0.l
d0,d1
d1
DSP96002 USER'S MANUAL
Totals:
T o tals:
;get data
;d1=ssAB, d3=ABCD
;d0=sssA, d1=ssAB
;d1=sssB
;d2=sssC
;d3=sssD
Totals:
;get data
;d1=sX, d0=XY
;d1=sY
Totals:
Program
ICycles
Words
1
1
1
1
1
1
---
---
3
3
Program
ICycles
Words
1
1
---
---
1
1
Program
ICycles
Words
1
1
1
1
1
1
1
1
1
1
---
---
5
5
Program
ICycles
Words
1
1
1
1
---
---
2
2
B-71

Advertisement

Table of Contents
loading

Table of Contents