Download C500 Microcontroller Family

Transcript
Instruction Set
C500 Family
MOV
DPTR, #data16
Function:
Load data pointer with a 16-bit constant
Description:
The data pointer is loaded with the 16-bit constant indicated. The 16 bit constant is
loaded into the second and third bytes of the instruction. The second byte (DPH) is
the high-order byte, while the third byte (DPL) holds the low-order byte. No flags are
affected.
This is the only instruction which moves 16 bits of data at once.
Example:
The instruction
MOV
Operation:
Encoding:
DPTR, #1234H
will load the value 1234H into the data pointer: DPH will hold 12H and DPL will hold
34H.
MOV
(DPTR) ¬ #data15-0
DPH DPL ¬ #data15-8 #data7-0
1 0 0 1
Bytes:
3
Cycles:
2
Semiconductor Group
0 0 0 0
immed. data 15 . . . 8
4-52
immed. data 7 . . . 0
1998-04-01