ZiLOG eZ80 User Manual page 370

Hide thumbs Also See for eZ80:
Table of Contents

Advertisement

SUB A, r
Subtract without Carry
Operation
A ← A – r
Description
The r operand is any of the 8-bit CPU registers A, B, C, D, E, H, or L. The r operand is
subtracted from the contents of the accumulator, A. The result is written to the accumula-
tor.
Condition Bits Affected
S
Z
H
P/V
N
C
Attributes
Mnemonic Operand
SUB
identifies the A, B, C, D, E, H, or L register and is assembled into one of the opcodes
jj
indicated in
UM007714-0908
Set if result is negative; reset otherwise.
Set if result is 0; reset otherwise.
Set if borrow from bit 4; reset otherwise.
Set if overflow; reset otherwise.
Set.
Set if borrow; reset otherwise.
ADL Mode Cycle Opcode (hex)
A,r
X
Table
102.
1
jj
®
eZ80
CPU
User Manual
361
CPU Instruction Set

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the eZ80 and is the answer not in the manual?

Questions and answers

Table of Contents