cp r
cp r - set flags as if A - r
unsigned integers
- If A == r, then Z flag is set.
- If A != r, then Z flag is reset.
- If A < r, then C flag is set.
- If A >= r, then C flag is reset.
signed integers
- If A == r, then Z flag is set.
- If A != r, then Z flag is reset.
- If A < r, then S and P/V are different.
- If A >= r, then S and P/V are the same.
source: z80 heaven