English
Language : 

CY8C32_13 Datasheet, PDF (12/121 Pages) Cypress Semiconductor – Programmable System-on-Chip (PSoC®)
PSoC® 3: CY8C32 Family Data Sheet
4.3 Instruction Set
The 8051 instruction set is highly optimized for 8-bit handling and
Boolean operations. The types of instructions supported include:
„ Arithmetic instructions
„ Logical instructions
„ Data transfer instructions
„ Boolean instructions
„ Program branching instructions
4.3.1 Instruction Set Summary
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 lists the different arithmetic instructions.
Table 4-1. Arithmetic Instructions
Mnemonic
Description
ADD
ADD
ADD
A,Rn
A,Direct
A,@Ri
Add register to accumulator
Add direct byte to accumulator
Add indirect RAM to accumulator
ADD A,#data
ADDC A,Rn
ADDC A,Direct
Add immediate data to accumulator
Add register to accumulator with carry
Add direct byte to accumulator with carry
ADDC A,@Ri
ADDC A,#data
SUBB A,Rn
Add indirect RAM to accumulator with carry
Add immediate data to accumulator with carry
Subtract register from accumulator with borrow
SUBB A,Direct
SUBB A,@Ri
SUBB A,#data
Subtract direct byte from accumulator with borrow
Subtract indirect RAM from accumulator with borrow
Subtract immediate data from accumulator with borrow
INC A
INC Rn
INC Direct
Increment accumulator
Increment register
Increment direct byte
INC @Ri
DEC A
DEC Rn
Increment indirect RAM
Decrement accumulator
Decrement register
DEC Direct
DEC @Ri
INC DPTR
Decrement direct byte
Decrement indirect RAM
Increment data pointer
MUL
DIV
DAA
Multiply accumulator and B
Divide accumulator by B
Decimal adjust accumulator
Bytes
1
2
1
2
1
2
1
2
1
2
1
2
1
1
2
1
1
1
2
1
1
1
1
1
Cycles
1
2
2
2
1
2
2
2
1
2
2
2
1
2
3
3
1
2
3
3
1
2
6
3
Document Number: 001-56955 Rev. *P
Page 12 of 121