MOVZ DP, #10bit
6-226
MOVZ DP, #10bit Load Data Page and Clear High Bits
SYNTAX OPTIONS OPCODE OBJMODE RPT CYC
MOVZ DP, #10bit 1011 10CC CCCC CCCC 1 − 1
Operands DP Data page register
#10bit 10-bit immediate constant value
Description Load the data page register with a 10-bit constant and clear the upper 6 bits:
DP(9:0) = 10bit;
DP(15:10) = 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
MOVZ DP, #VarA ; Load DP with the data page that contains
; VarA. Assumes VarA is in the lower
; 0x0000 FFC0 of memory
MOVZ DP, #3FFh ; Load DP with page number 0x03FF.