CMP

CMP - CoMPare memory and accumulator

Description

Flags affected
N Z C I D V
+ + + - - -
Addressing Mode Assembly OpCode No. Bytes. No. Cycles
Immediate CMP #Oper c9 2 2
Zero Page CMP Oper c5 2 3
Zero Page, X CMP Oper, X d5 2 4
Absolute CMP Oper cd 3 4
Absolute, X CMP Oper, X dd 3 4 [ 1 ]
Absolute, Y CMP Oper, Y d9 3 4 [ 1 ]
(Indirect, X) CMP (Oper, X) c1 2 6
(Indirect), Y CMP (Oper), Y d1 2 5 [ 1 ]

[ 1 ] Add 1 if on another page.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.