MOVZ ARn, loc16
6-225
MOVZ ARn, loc16 Load Lower Half of XARn and Clear Upper Half
SYNTAX OPTIONS
OPCODE OBJMODE RPT CYC
MOVZ AR0…5, loc16 0101 1nnn LLLL LLLL X − 1
MOVZ AR6, loc16 1000 1000 LLLL LLLL 1 − 1
MOVZ AR7, loc16 1000 0000 LLLL LLLL 1 − 1
Operands ARn AR0 to AR7, lower 16 bits of auxiliary registers
loc16 Addressing modes (See chapter 5)
Description Load ARn with the contents of the 16-bit location and clear ARnH:
ARn = [loc16];
ARnH = 0;
Flags and
Modes
None
Repeat This instruction is not repeatable. If this instruction follows the RPT
instruction, it resets the repeat counter (RPTC) and executes only once.
Example
MOVL XAR7, #ArrayA ; Initialize XAR2 pointer
MOVZ AR0, *+XAR2[0] ; Load 16-bit value pointed to by XAR2
; into AR0. XAR0(31:16) = 0.
MOVZ AR7, *−SP[1] ; Load the first 16-bit value off of the
; stack into AR7. XAR7(31:16) = 0.