English
Language : 

CY8C36_1105 Datasheet, PDF (12/126 Pages) Cypress Semiconductor – Programmable System-on-Chip (PSoC) Multiply and divide instructions
PSoC® 3: CY8C36 Family
Data Sheet
Table 4-1. Arithmetic Instructions
Mnemonic
ADD A,Rn
Description
Add register to accumulator
ADD
ADD
ADD
A,Direct
A,@Ri
A,#data
Add direct byte to accumulator
Add indirect RAM to accumulator
Add immediate data to accumulator
ADDC A,Rn
ADDC A,Direct
ADDC A,@Ri
Add register to accumulator with carry
Add direct byte to accumulator with carry
Add indirect RAM to accumulator with carry
ADDC A,#data
SUBB A,Rn
SUBB A,Direct
Add immediate data to accumulator with carry
Subtract register from accumulator with borrow
Subtract direct byte from accumulator with borrow
SUBB A,@Ri
SUBB A,#data
INC A
Subtract indirect RAM from accumulator with borrow
Subtract immediate data from accumulator with borrow
Increment accumulator
INC Rn
INC Direct
INC @Ri
Increment register
Increment direct byte
Increment indirect RAM
DEC
DEC
DEC
A
Rn
Direct
Decrement accumulator
Decrement register
Decrement direct byte
DEC @Ri
INC DPTR
MUL
Decrement indirect RAM
Increment data pointer
Multiply accumulator and B
DIV
DAA
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
4.3.1.2 Logical Instructions
The logical instructions perform Boolean operations such as AND, OR, XOR on bytes, rotate of accumulator contents, and swap of
nibbles in an accumulator. The Boolean operations on the bytes are performed on the bit-by-bit basis. Table 4-2 on page 12 shows
the list of logical instructions and their description.
Table 4-2. Logical Instructions
Mnemonic
ANL A,Rn
ANL A,Direct
Description
AND register to accumulator
AND direct byte to accumulator
Bytes
1
2
Cycles
1
2
ANL A,@Ri
ANL A,#data
ANL Direct, A
AND indirect RAM to accumulator
AND immediate data to accumulator
AND accumulator to direct byte
1
2
2
2
2
3
ANL Direct, #data
ORL A,Rn
ORL A,Direct
AND immediate data to direct byte
OR register to accumulator
OR direct byte to accumulator
3
3
1
1
2
2
ORL A,@Ri
OR indirect RAM to accumulator
1
2
Document Number: 001-53413 Rev. *L
Page 12 of 126