SM39R16A6
内嵌 16KB
具有 ISP 功能的 Flash
和 1K+256BRAM 的 8 位控制器
表 2‑ 4: Program branches
符号
ACALL addr11
LCALL addr16
RET
描述
代码
xxx11
12
字节
2
周期
6
Absolute subroutine call
Long subroutine call
3
6
from subroutine
22
1
4
RETI
from interrupt
32
1
4
AJMP addr11
LJMP addr16
SJMP rel
Absolute jump
xxx01
02
2
3
Long iump
3
4
Short jump (relative addr.)
80
2
3
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
1
2
60
2
3
JNZ rel
70
2
3
JC rel
40
2
3
JNC
Jump if carry flag is not set
Jump if direct bit is set
50
2
3
JB bit,rel
20
3
4
JNB bit,rel
Jump if direct bit is not set
30
3
4
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
3
4
B5
3
4
B4
3
4
B8-BF
B6-B7
D8-DF
D5
3
4
3
4
2
3
3
4
00
1
1
表 2‑ 5: Boolean manipulation
描述
符号
CLR C
代码
C3
C2
D3
D2
B3
B2
82
字节
1
周期
1
Clear carry flag
CLR bit
Clear direct bit
2
3
SETB C
Set carry flag
1
1
SETB bit
CPL C
Set direct bit
2
3
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
1
1
CPL bit
2
3
ANL C,bit
ANL C,/bit
ORL C,bit
ORL C,/bit
MOV C,bit
MOV bit,C
2
2
B0
72
2
2
2
2
A0
A2
92
2
2
2
2
2
3
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M04 Ver 0.4 SM39R16A6 06/11/2013
- 24 -