SM59A16U1
8-Bit Micro-controller
64KB with ISP Flash
& 6K+256B RAM embedded
Table 2-4: Program branches
Mnemonic
ACALL addr11
Description
Code
xxx11
12
Bytes Cycles
Absolute subroutine call
2
3
1
1
2
3
2
1
2
2
2
2
3
3
3
3
3
3
3
2
3
1
6
6
4
4
3
4
3
2
3
3
3
3
4
4
4
4
4
4
4
3
4
1
LCALL addr16
RET
Long subroutine call
from subroutine
22
RETI
from interrupt
32
AJMP addr11
LJMP addr16
SJMP rel
Absolute jump
xxx01
02
Long iump
Short jump (relative addr.)
80
JMP @A+DPTR
JZ rel
Jump indirect relative to the DPTR
Jump if accumulator is zero
Jump if accumulator is not zero
Jump if carry flag is set
73
60
JNZ rel
70
JC rel
40
JNC
Jump if carry flag is not set
Jump if direct bit is set
50
JB bit,rel
20
JNB bit,rel
Jump if direct bit is not set
30
JBC bit,direct rel
CJNE A,direct rel
CJNE A,#data rel
CJNE Rn,#data rel
CJNE @Ri,#data rel
DJNZ Rn,rel
DJNZ direct,rel
NOP
Jump if direct bit is set and clear bit
Compare direct byte to A and jump if not equal
Compare immediate to A and jump if not equal
Compare immed. to reg. and jump if not equal
Compare immed. to ind. and jump if not equal
Decrement register and jump if not zero
Decrement direct byte and jump if not zero
No operation
10
B5
B4
B8-BF
B6-B7
D8-DF
D5
00
Table 2-5: Boolean manipulation
Description
Mnemonic
CLR C
Code
C3
Bytes Cycles
Clear carry flag
1
2
1
2
1
2
2
2
2
2
2
2
1
3
1
3
1
3
2
2
2
2
2
3
CLR bit
Clear direct bit
C2
D3
D2
B3
B2
82
B0
72
A0
A2
92
SETB C
Set carry flag
SETB bit
CPL C
Set direct bit
Complement carry flag
Complement direct bit
AND direct bit to carry flag
AND complement of direct bit to carry
OR direct bit to carry flag
OR complement of direct bit to carry
Move direct bit to carry flag
Move carry flag to direct bit
CPL bit
ANL C,bit
ANL C,/bit
ORL C,bit
ORL C,/bit
MOV C,bit
MOV bit,C
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M071 Ver A SM59A16U1 04/12/2013
- 28 -