MOV PH, loc16
6-177
MOV PH, loc16 Load the High Half of the P Register
SYNTAX OPTIONS OPCODE OBJMODE RPT CYC
MOV PH, loc16 0010 1111 LLLL LLLL X − 1
Operands PH Upper 16 bits of the product register (P)
loc16 Addressing mode (see Chapter 5)
Description Load the high 16 bits of the P register (PH) with the 16-bit location pointed to
by the “loc16” addressing mode; leave the lower 16 bits (PL) unchanged:
PH = [loc16];
PL = unchanged;
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
; Swap the contents of AH and AL:
MOV PH,@AL ; Load PH with AL
MOV PL,@AH ; Load PL with AH
MOV ACC,@P ; Load ACC with P (AH and AL swapped)