Table of Contents Previous topic Next topic
MICROPROCESSOR INSTRUCTION REFERENCE->CP
CP s Compare accumulator and operand s
A s
Flags
S | Set if result -ve, else cleared |
Z | Set if result zero, else cleared |
H | Set if half carry, else cleared |
P/V | Set if overflow, else cleared |
N | Set always |
C | Set if carry, else cleared |
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 |