MVKH/MVKLH
Move 16-Bit Constant Into the Upper Bits of a Register
3-92
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
Example 1
MVKH .S1
0A329123h,A1
Before instruction
1 cycle after instruction
A1
0000 7634h
A1
0A32 7634h
Example 2
MVKLH .S1
7A8h,A1
Before instruction
1 cycle after instruction
A1
FFFF F25Ah
A1
07A8 F25Ah