NEC 78K/0 Series User Manual page 60

Nec computer hardware user's manual
Hide thumbs Also See for 78K/0 Series:
Table of Contents

Advertisement

OR
[Instruction format]
[Operation]
[Operand]
Mnemonic
OR
A, #byte
saddr, #byte
A, r
r, A
A, saddr
Note Except r = A
[Flag]
Z
AC
×
[Description]
• The bit-wise logical sum is obtained from the destination operand (dst) specified by the 1st operand and the
source operand (src) specified by 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 (1). In all other cases, the Z flag is cleared (0).
[Description example]
OR A, FE98H;
The bit-wise logical sum of the A register and FE98H is obtained and the result is stored in
the A register.
60
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
OR dst, src
dst ← dst ∨ src
Operand(dst,src)
Note
CY
User's Manual U12326EJ4V0UM
Logical Sum of Byte Data
Mnemonic
Operand(dst,src)
OR
A, !addr16
A, [HL]
A, [HL+byte]
A, [HL+B]
A, [HL+C]
Or

Advertisement

Table of Contents
loading

Table of Contents