
Z80 Instruction Set UM008007-0715
190
Z80 CPU
User Manual
SBC HL, ss
Operation
HL ← HI – ss – CY
Op Code
SBC
Operands
HL, ss
Description
The contents of the register pair ss (any of register pairs BC, DE, HL, or SP) and the Carry
Flag (C flag in the F Register) are subtracted from the contents of register pair HL, and the
result is stored in HL. In the assembled object code, operand ss is specified as follows:
Condition Bits Affected
S is set if result is negative; otherwise, it is reset.
Z is set if result is 0; otherwise, it is reset.
H is set if borrow from bit 12; otherwise, it is reset.
P/V is set if overflow; otherwise, it is reset.
Register
Pair ss
BC
00
DE
01
HL
10
SP
11
M Cycles T States 4 MHz E.T.
4 15 (4, 4, 4, 3) 3.75
Kommentare zu diesen Handbüchern