Texas Instruments TMS320C67X/C67X+ DSP manual Extract and Sign-Extend a Bit Field

Models: TMS320C67X/C67X+ DSP

1 465
Download 465 pages 63.87 Kb
Page 170
Image 170

EXT Extract and Sign-Extend a Bit Field

 

 

 

 

Extract and Sign-Extend a Bit Field

 

 

 

 

 

 

 

 

 

 

EXT

 

 

 

 

 

 

 

 

 

 

 

 

 

Syntax

 

 

 

 

EXT (.unit) src2, csta, cstb, dst

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

or

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

EXT (.unit) src2, src1, dst

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.unit = .S1 or .S2

 

 

 

 

 

 

 

 

 

 

 

 

 

Compatibility

 

 

C62x, C64x, C67x, and C67x+ CPU

 

 

 

 

 

 

 

 

 

 

 

Opcode

 

 

 

Constant form

 

 

 

 

 

 

 

 

 

 

 

 

 

31

29

28

27

23

22

18

17

13

12

8

7

6

5

4

3

2

1

0

creg

z

dst

src2

csta

cstb

0 1 0

0 1 0 s p

3 155551 1

Opcode map field used...

For operand type...

Unit

 

 

 

src2

sint

.S1, .S2

csta

ucst5

 

cstb

ucst5

 

dst

sint

 

 

 

 

Opcode

 

 

Register form

 

 

 

 

 

 

 

 

 

 

 

 

31

29

28

27

23

22

18

17

13

12

11

6

5

4

3

2

1

0

creg

z

dst

src2

src1

x

1

0

1

1

1

1

1

 

 

 

 

 

 

 

0 0 0 s p

3 155511 1

Opcode map field used...

For operand type...

Unit

 

 

 

src2

xsint

.S1, .S2

src1

uint

 

dst

sint

 

 

 

 

3-110

Instruction Set

SPRU733

Page 170
Image 170
Texas Instruments TMS320C67X/C67X+ DSP manual Extract and Sign-Extend a Bit Field