NEC 78K/0 Series User Manual page 59

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

Advertisement

AND
[Instruction format]
[Operation]
[Operand]
Mnemonic
AND
A, #byte
saddr, #byte
A, r
r, A
A, saddr
Note Except r = A
[Flag]
Z
AC
×
[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
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
AND dst, src
dst ← dst ∧ src
Operand(dst,src)
Note
CY
result is stored at FEBAH.
User's Manual U12326EJ4V0UM
Logical Product of Byte Data
Mnemonic
Operand(dst,src)
AND
A, !addr16
A, [HL]
A, [HL+byte]
A, [HL+B]
A, [HL+C]
And
59

Advertisement

Table of Contents
loading

Table of Contents