NEC 78K/0 Series User Manual page 55

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

Advertisement

ADD
[Instruction format]
[Operation]
[Operand]
Mnemonic
ADD
A, #byte
saddr, #byte
A, r
r, A
A, saddr
Note Except r = A
[Flag]
Z
AC
×
×
[Description]
• The destination operand (dst) specified by the 1st operand is added to the source operand (src) specified
by the 2nd operand and the result is stored in the CY flag and the destination operand (dst).
• If the addition result shows that dst is 0, the Z flag is set (1). In all other cases, the Z flag is cleared (0).
• If the addition generates a carry out of bit 7, the CY flag is set (1). In all other cases, the CY flag is cleared
(0).
• If the addition generates a carry for bit 4 out of bit 3, the AC flag is set (1). In all other cases, the AC flag
is cleared (0).
[Description example]
ADD CR10, #56H; 56H is added to the CR10 register and the result is stored in the CR10 register.
CHAPTER 5 EXPLANATION OF INSTRUCTIONS
ADD dst, src
dst, CY ← dst + src
Operand(dst,src)
Note
CY
×
User's Manual U12326EJ4V0UM
Mnemonic
Operand(dst,src)
ADD
A, !addr16
A, [HL]
A, [HL+byte]
A, [HL+B]
A, [HL+C]
Add
Byte Data Addition
55

Advertisement

Table of Contents
loading

Table of Contents