SM39R04G1
内嵌 4KB
具有 ISP 功能的 Flash
和 256B RAM 的 8 位控制器
2. 指令设置
所有SM39R04G1的指令都是兼容的二进制码,且具有标准的8051一样的功能,以下表格列出了以SM39R04G1微控器为核心
的指令集的周期的总结,这里的周期表示为机器周期。
Table 2-1: Arithmetic operations
Mnemonic
ADD A,Rn
Description
Add register to accumulator
Code
28-2F
25
Bytes Cycles
1
2
1
2
1
2
1
2
1
2
1
2
1
1
2
1
1
1
1
2
1
1
1
1
1
2
2
2
1
2
2
2
1
2
2
2
1
2
3
3
1
1
2
3
3
5
5
1
ADD A,direct
ADD A,@Ri
ADD A,#data
ADDC A,Rn
ADDC A,direct
ADDC A,@Ri
ADDC A,#data
SUBB A,Rn
SUBB A,direct
SUBB A,@Ri
SUBB A,#data
INC A
Add direct byte to accumulator
Add indirect RAM to accumulator
Add immediate data to accumulator
Add register to accumulator with carry flag
Add direct byte to A with carry flag
Add indirect RAM to A with carry flag
Add immediate data to A with carry flag
Subtract register from A with borrow
Subtract direct byte from A with borrow
Subtract indirect RAM from A with borrow
Subtract immediate data from A with borrow
Increment accumulator
26-27
24
38-3F
35
36-37
34
98-9F
95
96-97
94
04
INC Rn
Increment register
08-0F
05
INC direct
INC @Ri
Increment direct byte
Increment indirect RAM
06-07
A3
INC DPTR
DEC A
Increment data pointer
Decrement accumulator
14
DEC Rn
Decrement register
18-1F
15
DEC direct
DEC @Ri
MUL AB
Decrement direct byte
Decrement indirect RAM
16-17
A4
Multiply A and B
DIV
Divide A by B
84
DA A
Decimal adjust accumulator
D4
本说明书如有修改,恕不另行通知,请接洽您的销售代理商以获取最新版本信息。
ISSFD-M054 13
Ver.H SM39R04G1 08/2013