Commodore 64 Handbook page 63

Table of Contents

Advertisement

CMP
Compare Memory and Accumulator
Operation: A — M
X Z C I D V
y y y ---
Addressing
Mode
Assem bly Language
Form
OP
CODE
No.
Bytes
No.
Cycles
Im m ediate
CM P
# d d
C 9
2
2
Zero Page
CM P
aa
C 5
2
3
Z ero Page, X
CM P
aa,X
D5
2
4
A b so lu te
CM P
aaaa
C D
3
4
A b so lu te, X
CM P
aaaa,X
DD
3
4 *
A b so lu te, Y
CM P
a aa a,Y
D9
3
4*
(In direct, X)
CM P
(aa,X)
C l
2
6
(Indirect), Y
CM P
(aa),Y
D1
2
5*
*A d d 1 if page boundary is crossed.
CPX
Compare Memory and Index X
Operation: X — M
X Z C I D V
y y y ----
Addressing
Mode
Assem bly Language
Form
OP
CODE
No.
Bytes
No.
Cycles
Im m ediate
C P X
# d d
EO
2
2
Z ero Page
C P X
aa
E4
2
3
A b so lu te
C P X
aaaa
EC
3
4
CPY
Com pare Memory and Index Y
Operation: Y — M
X Z C I D V
J J J
------
Addressing
Mode
Assem bly Language
Form
O P
CODE
No.
Bytes
No.
Cycles
Im m ediate
C P Y
# d d
CO
2
2
Z ero Page
C P Y
aa
C 4
2
3
A b so lu te
C P Y
aaaa
C C
3
4
61

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Commodore 64

Table of Contents