CMP Compare memory data with Accumulator, A - M Addressing Assembly 6502 Sunplus No. No. Available Instruction mode Language Opcode Opcode Bytes Cycles 65n02 65r02 65s02 Sunplus Form Code Immediate CMP #dd C9H 66H 2 2 √√√√ Zero Page CMP aa C5H 27H 2 3 √√√√ Zero Page, X CMP aa, X D5H 2FH 2 4 √√√√ Absolute CMP aaaa CDH 67H 3 4 √ Absolute, X CMP aaaa, X DDH 6FH 3 4* √ //4个时钟 Absolute, Y CMP aaaa, Y D9H 6EH 3 4* √ (Indirect, X) CMP (aa, X) C1H 26H 2 6 √ //6个时钟 (Indirect), Y CMP (aa), Y D1H 2EH 2 5* √ //5个时钟 * Add 1 clock cycle if page boundary is crossed. |