English
Language : 

CY8C36 Datasheet, PDF (12/99 Pages) Cypress Semiconductor – Programmable System-on-Chip (PSoC)
PRELIMINARY
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
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
Subtract direct byte from accumulator with borrow
Subtract indirect RAM from accumulator with borrow
SUBB A,#data
INC A
INC Rn
INC Direct
INC @Ri
Subtract immediate data from accumulator with borrow
Increment accumulator
Increment register
Increment direct byte
Increment indirect RAM
DEC A
DEC Rn
Decrement accumulator
Decrement register
DEC Direct
DEC @Ri
INC DPTR
Decrement direct byte
Decrement indirect RAM
Increment data pointer
MUL
DIV
Multiply accumulator and B
Divide accumulator by B
DAA
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
3
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. 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
AND indirect RAM to accumulator
AND immediate data to accumulator
1
2
2
2
ANL Direct, A
ANL Direct, #data
AND accumulator to direct byte
AND immediate data to direct byte
2
3
3
3
ORL A,Rn
ORL A,Direct
ORL A,@Ri
OR register to accumulator
OR direct byte to accumulator
OR indirect RAM to accumulator
1
1
2
2
1
2
Document Number: 001-53413 Rev. *B
Page 12 of 99
[+] Feedback