Move a 16-Bit Signed Constant Into a Register and Sign Extend
MVK
3-89
TMS320C62x/C67x Fixed-Point Instruction Set
Syntax
MVK (.unit)
cst, dst
.unit = .S1 or .S2
Opcode map field used...
For operand type...
Unit
cst
dst
scst16
sint
.S1, .S2
Opcode
16
5
z
dst
6
0
cst
0
1
0
1
0
s
p
31
creg
29 28 27
23 22
7
1
3
1
1
Description
The 16-bit constant is sign extended and placed in
dst.
Execution
if (cond)
scst16
→
dst
else
nop
Pipeline
Stage
E1
Read
Written
dst
Unit in use
.S
Instruction Type
Single-cycle
Delay Slots
0
Note:
To load 32-bit constants, such as 0x1234 5678, use the following pair of
instructions:
MVK
0x5678
MVKLH 0x1234
You could also use:
MVK
0x12345678
MVKH
0x12345678
If you are loading the address of a label, use:
MVK
label
MVKH
label
Pipeline