NEC 78K/0 Series User Manual
Page 59

59
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
User's Manual U12326EJ4V0UM
And
AND
Logical Product of Byte Data
[Instruction format]
AND dst, src
[Operation]
dst
← dst ∧ src
[Operand]
Mnemonic
Operand(dst,src)
Mnemonic
Operand(dst,src)
AND
A, #byte
AND
A, !addr16
saddr, #byte
A, [HL]
A, r
Note
A, [HL+byte]
r, A
A, [HL+B]
A, saddr
A, [HL+C]
Note Except r = A
[Flag]
Z
AC
CY
×
[Description]
•
Bit-wise logical product 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 product shows that all bits are 0, the Z flag is set (1). In all other cases, the Z flag is cleared
(0).
[Description example]
AND FEBAH, #11011100B; Bit-wise logical product of FEBAH contents and 11011100B is obtained and the
result is stored at FEBAH.