Siemens C500 User Manual page 78

Microcontroller family
Table of Contents

Advertisement

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
will load the value 1234 H into the data pointer: DPH will hold 12 H and DPL will hold
34 H .
Operation:
MOV
(DPTR) ¬ #data15-0
DPH
Encoding:
1 0 0 1
Bytes:
3
Cycles:
2
Semiconductor Group
DPTR, #1234H
DPL ¬ #data15-8
0 0 0 0
#data7-0
immed. data 15 . . . 8
4-52
Instruction Set
C500 Family
immed. data 7 . . . 0
1998-04-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents