<< Previous | Next >>

SBC HL,ss     Subtract Through Carry     Rabbit 2000/3000/4000/5000 Instruction

Opcode
Instruction
Operation
---- SBC HL,ss HL = HL - ss - CF
ED 42 SBC HL,BC HL = HL - BC - CF
ED 52 SBC HL,DE HL = HL - DE - CF
ED 62 SBC HL,HL HL = HL - HL - CF
ED 72 SBC HL,SP HL = HL - SP - CF

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 2000/3000/4000
4
n/a
n/a
Rabbit 5000
4
4
2

Flags ALTD IOI/IOE
S
Z
L/V
C
F
R
SP
S
D
·
·
V
·
·
·

Description

Subtracts the C flag and the data in ss (any of BC, DE, HL, or SP) from HL. The result is stored in HL. These operations output an inverted carry:


Rabbit Instructions << Previous | Next >> rabbit.com