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'

Subtracts B and the carry flag from A.

Loading...

Variants

Every form of sbc the assembler accepts. The cycles column counts clock cycles, written as taken/not taken for the conditional forms.

InstructionDescriptionFlagsBytesCycles
sbc a,b

Subtracts B and the carry flag from A.

CN=1P/V=VHZS14
sbc a,c

Subtracts C and the carry flag from A.

CN=1P/V=VHZS14
sbc a,d

Subtracts D and the carry flag from A.

CN=1P/V=VHZS14
sbc a,e

Subtracts E and the carry flag from A.

CN=1P/V=VHZS14
sbc a,h

Subtracts H and the carry flag from A.

CN=1P/V=VHZS14
sbc a,l

Subtracts L and the carry flag from A.

CN=1P/V=VHZS14
sbc a,(hl)

Subtracts (HL) and the carry flag from A.

CN=1P/V=VHZS17
sbc a,a

Subtracts A and the carry flag from A.

CN=1P/V=VHZS14
sbc a,ixh undocumented

Subtracts IXH and the carry flag from A.

CN=1P/V=VHZS28
sbc a,ixl undocumented

Subtracts IXL and the carry flag from A.

CN=1P/V=VHZS28
sbc a,(ix+dd)

Subtracts the value pointed to by IX plus dd and the carry flag from A.

CN=1P/V=VHZS319
sbc a,nn

Subtracts nn and the carry flag from A.

CN=1P/V=VHZS27
sbc hl,bc

Subtracts BC and the carry flag from HL.

CN=1P/V=VHZS215
sbc hl,de

Subtracts DE and the carry flag from HL.

CN=1P/V=VHZS215
sbc hl,hl

Subtracts HL and the carry flag from HL.

CN=1P/V=VHZS215
sbc hl,sp

Subtracts SP and the carry flag from HL.

CN=1P/V=VHZS215
sbc a,iyh undocumented

Subtracts IYH and the carry flag from A.

CN=1P/V=VHZS28
sbc a,iyl undocumented

Subtracts IYL and the carry flag from A.

CN=1P/V=VHZS28
sbc a,(iy+dd)

Subtracts the value pointed to by IY plus dd and the carry flag from A.

CN=1P/V=VHZS319