<< Previous | Next >>

SBC A,r     Subtract with Carry     Rabbit 2000/3000/3000A Instruction

Opcode
Instruction
Operation
---- SBC A,r A = A - r - CF
9F SBC A,A A = A - A - CF
98 SBC A,B A = A - B - CF
99 SBC A,C A = A - C - CF
9A SBC A,D A = A - D - CF
9B SBC A,E A = A - E - CF
9C SBC A,H A = A - H - CF
9D SBC A,L A = A - L - CF

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

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

Description

Subtracts the C flag and the data in r (any of the registers A, B, C, D, E, H, or L) from the data in A. The result is stored in A.

These operations output an inverted carry:


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