OR1
[Instruction format]
[Operation]
[Operand]
Mnemonic
OR1
CY, saddr.bit
CY, sfr.bit
CY, A.bit
CY, PSW.bit
CY, [HL].bit
[Flag]
Z
AC
[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.
88
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
OR1 dst, src
dst ← dst ∨ src
Operand(dst,src)
CY
×
User's Manual U12326EJ4V0UM
Or Single Bit
1 Bit Data Logical Sum