ZiLOG eZ80 User Manual page 367

Hide thumbs Also See for eZ80:
Table of Contents

Advertisement

SUB A, ir
Subtract without Carry
Operation
A ← A – ir
Description
The ir operand is any of the 8-bit registers IXH, IXL, IYH, or IYL. The ir operand is sub-
tracted 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
SUB
SUB
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,IXH
X
A,IXL
X
A,IYH
X
A,IYL
X
2
DD, 94
2
DD, 95
2
FD, 94
2
FD, 95
®
eZ80
CPU
User Manual
358
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

Subscribe to Our Youtube Channel

Table of Contents