SUB A, n
Subtract without Carry
Operation
A ← A – n
Description
The 8-bit immediate value n is subtracted from the contents of the accumulator, A. The
result is written to the accumulator.
Condition Bits Affected
S
Z
H
P/V
N
C
Attributes
Mnemonic Operand
SUB
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,n
X
2
D6, nn
®
eZ80
CPU
User Manual
360
CPU Instruction Set
Need help?
Do you have a question about the eZ80 and is the answer not in the manual?
Questions and answers