Texas Instruments TMS320C67X/C67X+ DSP User Manual

Page 246

Advertising
background image

MVKH/MVKLH

Move 16-Bit Constant Into Upper Bits of Register

3-186

Instruction Set

SPRU733

Instruction Type

Single-cycle

Delay Slots

0

Note:
Use the MVK instruction (page 3-183) to load 16-bit constants. The assem-

bler generates a warning for any constant over 16 bits. To load 32-bit

constants, such as 1234 5678h, use the following pair of instructions:

MVKL

0x12345678

MVKH

0x12345678

If you are loading the address of a label, use:

MVKL

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

Advertising