Table of Contents Previous topic Next topic
MICROPROCESSOR INSTRUCTION REFERENCE->SUB
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 |
| AC | Set if half carry, else cleared |
| P | Set if parity even else cleared |
| C | Set if borrow, else cleared |
| s: | No of bytes | Cycles | |
| 8085 | 8080A | ||
| r | 1 | 4 | 4 |
| M | 1 | 7 | 7 |