SBC HL,ss
Subtract Through Carry
Rabbit 2000/3000/4000/5000 Instruction
|
| ---- |
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 |
|
| Rabbit 2000/3000/4000 |
|
|
|
| Rabbit 5000 |
|
|
|
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:
- The C flag is set if HL is less than the data being subtracted from it.
- The C flag is cleared if HL is greater than the data being subtracted from it.
- The C flag is unchanged if HL is equal to the data being subtracted from it.