ZiLOG eZ80 User Manual page 346

Hide thumbs Also See for eZ80:
Table of Contents

Advertisement

SBC HL, SP
Subtract with Carry
Operation
HL ← HL – SP – C
Description
The Stack Pointer (SP) and the Carry Flag (C) are subtracted from the contents of the HL
register. The result is written to HL. In ADL mode, or if the .L suffix is employed, the 24-
bit Stack Pointer Long (SPL) is used. In Z80 mode of if the .S suffix is employed, the 16-
bit Stack Pointer Short (SPS) is used.
Condition Bits Affected
S
Z
H
P/V
N
C
Attributes
Mnemonic Operand
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 12; reset otherwise.
Set if overflow; reset otherwise.
Set.
Set if borrow; reset otherwise.
ADL Mode Cycle Opcode (hex)
HL,SP
X
HL,SP
1
HL,SP
0
2
ED, 72
3
52, ED, 72
3
49, ED, 72
®
eZ80
CPU
User Manual
337
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