ZiLOG eZ80 User Manual page 340

Hide thumbs Also See for eZ80:
Table of Contents

Advertisement

SBC A, (IX/Y+d)
Subtract with Carry
Operation
A ← A–(IX/Y+d)–C
Description
The (IX/Y+d) operand is an 8-bit value at the memory location specified by the contents
of the Index Register, IX or IY, added to the two's-complement displacement d. This 8-bit
value and the Carry Flag (C) are 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
SBC
SBC.S
SBC.L
SBC
SBC.S
SBC.L
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,(IX+d)
X
A,(IX+d)
1
A,(IX+d)
0
A,(IY+d)
X
A,(IY+d)
1
A,(IY+d)
0
4
DD, 9E, dd
5
52, DD, 9E, dd
5
49, DD, 9E, dd
4
FD, 9E, dd
5
52, FD, 9E, dd
5
49, FD, 9E, dd
®
eZ80
CPU
User Manual
331
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