Table of Contents Previous topic Next topic
MICROPROCESSOR INSTRUCTION REFERENCE->SUB s
SUB s Subtract operand s from accumulator
A <- A - s
Flags
S | Set if result -ve, else cleared |
Z | Set if result zero, else cleared |
H | Set if half borrow |
P/V | Set if overflow, else cleared |
N | Set always |
C | Set if borrow |
S: | No of | M | T | usec @ |
bytes | cycles | states | 2 MHz |
R | 1 | 1 | 4 | 2 |
N | 2 | 2 | 7 | 3.5 |
(HL) | 1 | 2 | 7 | 3.5 |
(IX+d) | 3 | 5 | 19 | 9.5 |
(IY+d) | 3 | 5 | 19 | 9.5 |