NEC 78K/0 Series User Manual page 61

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

Advertisement

XOR
[Instruction format]
[Operation]
[Operand]
Mnemonic
XOR
A, #byte
saddr, #byte
A, r
r, A
A, saddr
Note Except r = A
[Flag]
Z
AC
×
[Description]
• The bit-wise exclusive 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).
Logical negation of all bits of the destination operand (dst) is possible by selecting #0FFH for the source
operand (src) with this instruction.
• If the exclusive 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]
XOR A, L; The bit-wise exclusive logical sum of the A and L registers is obtained and the result is stored in
the A register.
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
XOR dst, src
dst ← dst ∨ src
Operand(dst,src)
Note
CY
User's Manual U12326EJ4V0UM
Exclusive Logical Sum of Byte Data
Mnemonic
Operand(dst,src)
XOR
A, !addr16
A, [HL]
A, [HL+byte]
A, [HL+B]
A, [HL+C]
Exclusive Or
61

Advertisement

Table of Contents
loading

Table of Contents