PSoC® 3: CY8C32 Family
Data Sheet
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-2Table 4-2 on page 13
shows the list of logical instructions and their description.
Table 4-2. Logical Instructions
Mnemonic
ANL A,Rn
Description
AND register to accumulator
Bytes
Cycles
1
2
1
2
2
3
1
2
1
2
2
3
1
2
1
2
2
3
1
1
1
1
1
1
1
1
2
2
2
3
3
1
2
2
2
3
3
1
2
2
2
3
3
1
1
1
1
1
1
1
ANL A,Direct
ANL A,@Ri
AND direct byte to accumulator
AND indirect RAM to accumulator
AND immediate data to accumulator
AND accumulator to direct byte
AND immediate data to direct byte
OR register to accumulator
ANL A,#data
ANL Direct, A
ANL Direct, #data
ORL A,Rn
ORL A,Direct
ORL A,@Ri
OR direct byte to accumulator
OR indirect RAM to accumulator
OR immediate data to accumulator
OR accumulator to direct byte
OR immediate data to direct byte
XOR register to accumulator
XOR direct byte to accumulator
XOR indirect RAM to accumulator
XOR immediate data to accumulator
XOR accumulator to direct byte
XOR immediate data to direct byte
Clear accumulator
ORL A,#data
ORL Direct, A
ORL Direct, #data
XRL A,Rn
XRL A,Direct
XRL A,@Ri
XRL A,#data
XRL Direct, A
XRL Direct, #data
CLR
CPL
RL
A
A
A
A
A
Complement accumulator
Rotate accumulator left
RLC
RR
Rotate accumulator left through carry
Rotate accumulator right
RRC A
SWAP A
Rotate accumulator right though carry
Swap nibbles within accumulator
Document Number: 001-56955 Rev. *J
Page 13 of 119
[+] Feedback