Table of Contents Previous topic Next topic
MICROPROCESSOR INSTRUCTION REFERENCE->CMP (8 bit)
CMP Compare Memory with a Register
CMPA
CMPB
A _ M or B _ M
Condition Code Register:
H Undefined
N Set if result Negative, else cleared
Z Set if result Zero, else cleared
V Set on overflow, else cleared
C Set if borrow, else cleared
Addressing mode | No of cycles | No of bytes |
Immediate: | 2 | 2 |
Direct: | 4 | 2 |
Extended: | 5 | 3 |
Index/Indirect: | 4+ | 2+ |