Subtracts B and the carry flag from A.
sbc
Operands
sbc r,r' | sbc r | sbc r,(rr) | sbc (rr) | sbc r,(ii+dd) | sbc (ii+dd) | sbc r,nn | sbc nn | sbc rr,rr'Variants
Every form of sbc the assembler accepts. The cycles column counts clock
cycles, written as taken/not taken for the conditional forms.
| Instruction | Description | Flags | Bytes | Cycles |
|---|---|---|---|---|
| sbc a,b | Subtracts B and the carry flag from A. | CN=1P/V=VHZS | 1 | 4 |
| sbc a,c | Subtracts C and the carry flag from A. | CN=1P/V=VHZS | 1 | 4 |
| sbc a,d | Subtracts D and the carry flag from A. | CN=1P/V=VHZS | 1 | 4 |
| sbc a,e | Subtracts E and the carry flag from A. | CN=1P/V=VHZS | 1 | 4 |
| sbc a,h | Subtracts H and the carry flag from A. | CN=1P/V=VHZS | 1 | 4 |
| sbc a,l | Subtracts L and the carry flag from A. | CN=1P/V=VHZS | 1 | 4 |
| sbc a,(hl) | Subtracts (HL) and the carry flag from A. | CN=1P/V=VHZS | 1 | 7 |
| sbc a,a | Subtracts A and the carry flag from A. | CN=1P/V=VHZS | 1 | 4 |
| sbc a,ixh undocumented | Subtracts IXH and the carry flag from A. | CN=1P/V=VHZS | 2 | 8 |
| sbc a,ixl undocumented | Subtracts IXL and the carry flag from A. | CN=1P/V=VHZS | 2 | 8 |
| sbc a,(ix+dd) | Subtracts the value pointed to by IX plus | CN=1P/V=VHZS | 3 | 19 |
| sbc a,nn | Subtracts | CN=1P/V=VHZS | 2 | 7 |
| sbc hl,bc | Subtracts BC and the carry flag from HL. | CN=1P/V=VHZS | 2 | 15 |
| sbc hl,de | Subtracts DE and the carry flag from HL. | CN=1P/V=VHZS | 2 | 15 |
| sbc hl,hl | Subtracts HL and the carry flag from HL. | CN=1P/V=VHZS | 2 | 15 |
| sbc hl,sp | Subtracts SP and the carry flag from HL. | CN=1P/V=VHZS | 2 | 15 |
| sbc a,iyh undocumented | Subtracts IYH and the carry flag from A. | CN=1P/V=VHZS | 2 | 8 |
| sbc a,iyl undocumented | Subtracts IYL and the carry flag from A. | CN=1P/V=VHZS | 2 | 8 |
| sbc a,(iy+dd) | Subtracts the value pointed to by IY plus | CN=1P/V=VHZS | 3 | 19 |