90 / 132 page

Handshake Solutions
HT80C51 User Manual
80C51 Family Instruction Set – 80C51 Instruction Set Summary
Page 90 of 132
© Philips Electronics N.V. 2005
MNEMONIC
DESCRIPTION
BYTE
MACHINE
CYCLES
BOOLEAN VARIABLE MANIPULATION
CLR
C
Clear carry
1
1
CLR
bit
Clear direct bit
2
1
SETB
C
Set carry
1
1
SETB
bit
Set direct bit
2
1
CPL
C
Complement carry
1
1
CPL
bit
Complement direct bit
2
1
ANL
C,bit
AND direct bit to carry
2
2
ANL
C,/bit
AND complement of direct bit to carry
2
2
ORL
C,bit
OR direct bit to carry
2
2
ORL
C,/bit
OR complement of direct bit to carry
2
2
MOV
C,bit
Move direct bit to carry
2
1
MOV
bit,C
Move carry to direct bit
2
2
JC
rel
Jump if carry is set
2
2
JNC
rel
Jump if carry not set
2
2
JB
rel
Jump if direct bit is set
3
2
JNB
rel
Jump if direct bit is not set
3
2
JBC
bit,rel
Jump if direct bit is set and clear bit
3
2
PROGRAM BRANCHING
ACALL
addr11
Absolute subroutine call
2
2
LCALL
addr16
Long subroutine call
3
2
RET
Return from subroutine
1
2
RETI
Return from interrupt
1
2
AJMP
addr11
Absolute jump
2
2
LJMP
addr16
Long jump
3
2
SJMP
rel
Short jump (relative addr)
2
2
JMP
@A+DPTR
Jump indirect relative to the DPTR
1
2
JZ
rel
Jump if Accumulator is zero
2
2
JNZ
rel
Jump if Accumulator is not zero
2
2
CJNE
A,direct,rel
Compare direct byte to ACC and jump if not equal
3
2
CJNE
A,#data,rel
Compare immediate to ACC and jump if not equal
3
2
CJNE
RN,#data,rel
Compare immediate to register and jump if not equal
3
2
CJNE
@Ri,#data,rel
Compare immediate to indirect and jump if not equal
3
2
DJNZ
Rn,rel
Decrement register and jump if not zero
2
2
DJNZ
direct,rel
Decrement direct byte and jump if not zero
3
2
NOP
No operation
1
1
All mnemonics copyrighted © Intel Corporation 1980