8051 Instruction Set Manual MOV
8051 Instruction Set Manual MOV
8051 Instruction Set Manual MOV
POP
PUSH
MOV A, #immediate
RET C AC F0 RS1 RS0 OV P
RETI
RL Bytes 2
Cycles 1
RLC 01110100 immediate
Encoding
RR
Operation
RRC
MOV
SETB A = immediate
SJMP
SUBB Example
MOV A, #0FFh
SWAP
http://www.keil.com/support/man/docs/is51/is51_mov.htm[07/04/2019 22:19:23]
8051 Instruction Set Manual: MOV
XCH
XCHD MOV A, @Ri
XRL C AC F0 RS1 RS0 OV P
Bytes 1
Cycles 1
Encoding 1110011i
Operation
MOV
A = (Ri)
Example
MOV A, @R1
MOV A, direct
C AC F0 RS1 RS0 OV P
Bytes 2
Cycles 1
Encoding 11100101 direct
Operation
MOV
A = (direct)
Example
MOV A, P0
MOV A, Rn
C AC F0 RS1 RS0 OV P
Bytes 1
Cycles 1
Encoding 11101nnn
Operation
MOV
A = Rn
Example
MOV A, R6
MOV bit, C
C AC F0 RS1 RS0 OV P
Bytes 2
Cycles 2
Encoding 10010010 bit
Operation
MOV
(bit) = C
Example
MOV 22h, C
MOV C, bit
C AC F0 RS1 RS0 OV P
Bytes 2
Cycles 1
Encoding 10100010 bit
Operation
MOV
C = (bit)
Example
MOV C, 22h
Bytes 3
Cycles 2
http://www.keil.com/support/man/docs/is51/is51_mov.htm[07/04/2019 22:19:23]
8051 Instruction Set Manual: MOV
Operation
MOV
(dest_direct) = (src_direct)
Example
MOV P1, P0
Bytes 3
Cycles 2
Encoding 01110101 direct immediate
Operation
MOV
(direct) = immediate
Example
MOV P2, #0FFh
Bytes 2
Cycles 2
Encoding 1000011n direct
Operation
MOV
(direct) = (Rn)
Example
MOV P0, @R1
MOV direct, A
C AC F0 RS1 RS0 OV P
Bytes 2
Cycles 1
Encoding 11110101 direct
Operation
MOV
(direct) = A
Example
MOV P0, A
MOV direct, Rn
C AC F0 RS1 RS0 OV P
Bytes 2
Cycles 2
Encoding 10001nnn direct
Operation
MOV
(direct) = Rn
Example
MOV P2, R5
Bytes 3
Cycles 2
Encoding 10010000 immediate15-8 immediate7-0
Operation
MOV
DPTR = immediate
Example
http://www.keil.com/support/man/docs/is51/is51_mov.htm[07/04/2019 22:19:23]
8051 Instruction Set Manual: MOV
Bytes 2
Cycles 1
Encoding 01111nnn immediate
Operation
MOV
Rn = immediate
Example
MOV R4, #0h
MOV Rn, A
C AC F0 RS1 RS0 OV P
Bytes 1
Cycles 1
Encoding 11111nnn
Operation
MOV
Rn = A
Example
MOV R5, A
Bytes 2
Cycles 2
Encoding 10101nnn direct
Operation
MOV
Rn = (direct)
Example
MOV R4, P1
http://www.keil.com/support/man/docs/is51/is51_mov.htm[07/04/2019 22:19:23]