Move 16-Bit Constant Into the Upper Bits of a Register
MVKH/MVKLH
3-91
TMS320C62x/C67x Fixed-Point Instruction Set
Syntax
MVKH (.unit)
cst, dst
or
MVKLH (.unit)
cst, dst
.unit = .S1 or .S2
Opcode map field used...
For operand type...
Unit
cst
dst
uscst16
sint
.S1, .S2
Opcode
16
5
z
dst
6
0
cst
1
1
0
1
0
s
p
31
creg
29 28 27
23 22
7
1
3
1
1
Description
The 16-bit constant
cst is loaded into the upper 16 bits of dst. The 16 LSBs of
dst are unchanged. The assembler encodes the 16 MSBs of a 32-bit constant
into the
cst field of the opcode for the MVKH instruction. The assembler
encodes the 16 LSBs of a constant into the
cst field of the opcode for the
MVKLH instruction.
Execution
MVKLH
if (cond)((
cst
15..0
)
<<
16) or (
dst
15..0
)
→
dst
else nop
MVKH
if (cond)((
cst
31..16
)
<<
16) or (
dst
15..0
)
→
dst
else nop
Pipeline
Stage
E1
Read
Written
dst
Unit in use
.S
Instruction Type
Single-cycle
Delay Slots
0
Pipeline