<< Previous | Next >>

SBC A,(HL)     Subtract with Carry     Rabbit 4000 Instruction
Opcode
Instruction
Clocks
Operation

7F 9E

SBC A,(HL)

7 (2,2,1,2)

A = A - (HL) - CF


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

Description

Subtracts the C flag and the data whose address is in HL from A. The result is stored in A. These operations output an inverted carry:

The Rabbit 4000 assembler views "SBC A,(HL)" and "SBC (HL)" as equivalent instructions. In the latter case, A is used even though it is not explicitly stated.

The opcode for this instruction is different than the same instruction in the Rabbit 2000, 3000 and 3000A.


<< Previous | Next >>