
Instruction Reference Manual
95
Description
Subtracts the Carry Flag, CF, and the data in word register ss (any of the word registers BC, DE, HL, or SP)
from the data in word register HL. The difference is stored in HL.
These operations output an inverted carry:
•
The Carry Flag is set if the Accumulator is less than the data being subtracted from it.
•
The Carry Flag is cleared if the Accumulator is greater than the data being subtracted from it.
Description
Sets the Carry Flag, CF.
SBC HL,ss
Opcode
Instruction
Clocks
Operation
——
ED 42
ED 52
ED 62
ED 72
SBC HL,ss
SBC HL,BC
SBC HL,DE
SBC HL,HL
SBC HL,SP
4 (2,2)
4 (2,2)
4 (2,2)
4 (2,2)
4 (2,2)
HL = HL - ss - CF
HL = HL - BC - CF
HL = HL - DE - CF
HL = HL - HL - CF
HL = HL - SP - CF
Flags
ALTD
I/O
S
Z
L/V
C
F
R
SP
S
D
•
•
V
•
•
•
SCF
Opcode
Instruction
Clocks
Operation
37
SCF
2
CF = 1
Flags
ALTD
I/O
S
Z
L/V
C
F
R
SP
S
D
-
-
-
1
•
Summary of Contents for 2000
Page 2: ...ii Rabbit 2000 3000 Microprocessor...
Page 4: ...iv Rabbit 2000 Microprocessor...
Page 16: ...12 Rabbit 2000 3000 Microprocessor...
Page 112: ...108 Rabbit 2000 3000 Microprocessor...
Page 120: ...ii Rabbit 2000 3000 Microprocessor...