
The 8051 Instruction Set
1-17 Atmel 8051 Microcontrollers Hardware Manual
4316E–8051–01/07
MOV direct,#data Move immediate data to direct byte 3 24
MOV @R
i
,A Move Accumulator to indirect RAM 1 12
MOV @R
i
,direct Move direct byte to indirect RAM 2 24
MOV @R
i
,#data Move immediate data to indirect RAM 2 12
MOV DPTR,#data16 Load Data Pointer with a 16-bit
constant
3 24
MOVC A,@A+DPTR Move Code byte relative to DPTR to
Acc
1 24
MOVC A,@A+PC Move Code byte relative to PC to Acc 1 24
MOVX A,@R
i
Move External RAM (8-bit addr) to
Acc
1 24
DATA TRANSFER (continued)
MOVX A,@DPTR Move Exernal RAM (16-bit addr) to
Acc
1 24
MOVX @R
i
,A Move Acc to External RAM (8-bit
addr)
1 24
MOVX @DPTR,A Move Acc to External RAM (16-bit
addr)
1 24
PUSH direct Push direct byte onto stack 2 24
POP direct Pop direct byte from stack 2 24
XCH A,R
n
Exchange register with Accumulator 1 12
XCH A,direct Exchange direct byte with
Accumulator
2 12
XCH A,@R
i
Exchange indirect RAM with
Accumulator
1 12
XCHD A,@R
i
Exchange low-order Digit indirect
RAM with Acc
1 12
BOOLEAN VARIABLE MANIPULATION
CLR C Clear Carry 1 12
CLR bit Clear direct bit 2 12
SETB C Set Carry 1 12
SETB bit Set direct bit 2 12
CPL C Complement Carry 1 12
CPL bit Complement direct bit 2 12
ANL C,bit AND direct bit to CARRY 2 24
ANL C,/bit AND complement of direct bit to Carry 2 24
ORL C,bit OR direct bit to Carry 2 24
ORL C,/bit OR complement of direct bit to Carry 2 24
MOV C,bit Move direct bit to Carry 2 12
MOV bit,C Move Carry to direct bit 2 24
JC rel Jump if Carry is set 2 24
JNC rel Jump if Carry not set 2 24
Mnemonic Description Byte Oscillator
Period
Kommentare zu diesen Handbüchern