
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
55
OR
Or
Logical Sum of Byte Data
[Instruction format]
OR dst,src
[Operation]
dst
←
dst
∨
src
[Operand]
Mnemonic
Operand (dst,src)
Mnemonic
Operand (dst,src)
OR
A,#byte
OR
A,!addr16
saddr,#byte
A,[HL]
A,r
A,[HL + byte]
A,saddr
[Flag]
Z
AC
CY
×
[Description]
Bit-wise logical sum is obtained from the destination operand (dst) specified with the 1st operand and the
source operand (src) specified with the 2nd operand and the result is stored in the destination operand (dst).
If the logical sum shows that all bits are 0, the Z flag is set to (1). In all other cases, the Z flag is cleared to (0).
[Description example]
OR A,0FE98H;
Bit-wise logical sum of the A register and FE98H is obtained and the result is stored in the A
register.