Intel MCS 51 User Manual page 86

Table of Contents

Advertisement

I
I
int&
M=@-51 PROGRAMMER'S GUIDE AND INSTRUCTION SET
MOV C,blt
Bytes:
Cycles:
Enooding:
Operstion:
MOV bi&C
Bytes:
Cycles:
Enooding:
Operstion:
2
1
1o1o
1"0'01
EiEl
MOV
(~+(bit)
.
L
2
1001
1"0'01
E
MOV
(bit) + (C)
MOV DPTR,#dsts16
Function:
Description:
Example:
Bytesx
Cycles:
Encoding:
Operation:
Load Data Pointer with a Id-bit constant
The Data Pointer is loaded with the Id-bit constant indicated.The id-bit constant is loaded
into the second and third bytes of the instruction. The secondbyte (DPH) is the high-order
byte, while the third byte (DPL) holds the low-orderbyte. No tlags are atTeeted.
This is the only instruction whichmovea 16bits of tits at once.
The instruction,
MOV DPTR, # 1234H
willload the value 1234Hinto the Data Pointer: DPH willhold 12Hand DPL will hold 34H.
3
.
L
1001
0000
I immed. dsts15-6
I
immed.data7-O
MOV
(DPTR) ~
#data154
DPH
DPL +
#&ltS15.8 #data73
2-56

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents