PSoC® 3: CY8C32 Family
Data Sheet
4.3.1 Instruction Set Summary
4.3 Instruction Set
The 8051 instruction set is highly optimized for 8-bit handling and
Boolean operations. The types of instructions supported include:
4.3.1.1 Arithmetic Instructions
Arithmetic instructions support the direct, indirect, register,
immediate constant, and register-specific instructions.
Arithmetic modes are used for addition, subtraction,
multiplication, division, increment, and decrement operations.
Table 4-1 Table 4-1 on page 12lists the different arithmetic
instructions.
Arithmetic instructions
Logical instructions
Data transfer instructions
Boolean instructions
Program branching instructions
Table 4-1. Arithmetic Instructions
Mnemonic
ADD A,Rn
Description
Bytes
Cycles
Add register to accumulator
1
2
1
2
1
2
1
2
1
2
1
2
1
1
2
1
1
1
2
1
1
1
1
1
1
2
2
2
1
2
2
2
1
2
2
2
1
2
3
3
1
2
3
3
1
2
6
3
ADD A,Direct
ADD A,@Ri
ADD A,#data
ADDC A,Rn
Add direct byte to accumulator
Add indirect RAM to accumulator
Add immediate data to accumulator
Add register to accumulator with carry
Add direct byte to accumulator with carry
Add indirect RAM to accumulator with carry
Add immediate data to accumulator with carry
Subtract register from accumulator with borrow
Subtract direct byte from accumulator with borrow
Subtract indirect RAM from accumulator with borrow
Subtract immediate data from accumulator with borrow
Increment accumulator
ADDC A,Direct
ADDC A,@Ri
ADDC A,#data
SUBB A,Rn
SUBB A,Direct
SUBB A,@Ri
SUBB A,#data
INC
A
INC Rn
Increment register
INC Direct
INC @Ri
Increment direct byte
Increment indirect RAM
DEC
A
Decrement accumulator
DEC Rn
DEC Direct
DEC @Ri
INC DPTR
MUL
Decrement register
Decrement direct byte
Decrement indirect RAM
Increment data pointer
Multiply accumulator and B
DIV
Divide accumulator by B
DAA
Decimal adjust accumulator
Document Number: 001-56955 Rev. *J
Page 12 of 119
[+] Feedback