Table of Contents Previous topic Next topic
MICROPROCESSOR INSTRUCTION REFERENCE->CMP (16 bit)
CMP Compare Memory with a Register
CMPD
CMPS
CMPU D - M:M+1 or S _ M:M+1 or
CMPX U _ M:M+1 or X _ M:M+1 or
CMPY Y _ M:M+1
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: | 5 (4) | 4 (3) |
Direct: | 7 (6) | 3 (2) |
Extended: | 8 (7) | 4 (3) |
Index/Indirect: | 7+ (6+) | 3+ (2+) |