88
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
User's Manual U12326EJ4V0UM
Or Single Bit
OR1 1 Bit Data Logical Sum
[Instruction format] OR1 dst, src
[Operation] dst dst src
[Operand]
Mnemonic Operand(dst,src)
OR1 CY, saddr.bit
CY, sfr.bit
CY, A.bit
CY, PSW.bit
CY, [HL].bit
[Flag]
ZACCY
×
[Description]
The logical sum of bit data of the destination operand (dst) specified by the 1st operand and the source
operand (src) specified by the 2nd operand is obtained and the result is stored in the destination operand
(dst).
The operation result is stored in the CY flag (because of the destination operand (dst)).
[Description example]
OR1 CY, P2.5; The logical sum of port 2 bit 5 and the CY flag is obtained and the result is stored in the CY
flag.