MOVW DP, #16bit
6-223
MOVW DP, #16bit Load the Entire Data Page
SYNTAX OPTIONS OPCODE OBJMODE RPT CYC
MOVW DP, #16bit 0111 0110 0001 1111
CCCC CCCC CCCC CCCC
X − 1
Operands DP Data page register
#16bit 16-bit immediate constant value
Description Load the data page register with a 16-bit constant:
DP(15:0) = 16bit;
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
MOVW DP, #VarA ; Load DP with the data page that
; contains VarA. Assumes VarA is in the
; lower 0x003F FFC0 of memory
MOVW DP, #0F012h ; Load DP with data page number 0xF012