![SunPlus CPU6502 Скачать руководство пользователя страница 31](http://html1.mh-extra.com/html/sunplus/cpu6502/cpu6502_instruction-manual_1399040031.webp)
S
un
pl
us
IT
C
on
fid
en
tia
l
F
or
A
D
D
In
te
rn
at
io
na
l L
im
ite
d
U
se
O
nl
y
CPU6502 Instruction Manual v2.1
Sunplus reserves the rights to change this documentation without prior notice.
09/13/2005
31
CPX
Compare memory data with Register X, X - data
Available Instruction
& No. Cycles
Addressing
mode
Assembly
Language
Form
6502
Opcode
Sunplus
Opcode
No.
Bytes
65b02
65n02
65r02 65s02
CPU12
Immediate
CPX
#dd
E0H 32H 2 2 2 2 2 2
Zero
Page
CPX
aa E4H 33H 2 3 3 3 3 3
Absolute
CPX
aaaa
ECH
73H 3 4 4 X X X
X: Not available.
N V D I Z C
! - - - ! !
N: Set if result is negative
Z: Set if result is 0
C: Set if a “borrow” not occurred. (X > = data)
CPY
Compare memory data with Register Y, Y - data
Available Instruction
& No. Cycles
Addressing
mode
Assembly
Language
Form
6502
Opcode
Sunplus
Opcode
No.
Bytes
65b02 65n02 65r02 65s02
CPU12
Immediate
CPY
#dd
C0H 22H 2 2 2 X X X
Zero Page
CPY aa
C4H
23H
2
3
3
X
X
X
Absolute
CPY
aaaa
CCH 63H 3 4 4 X X X
X: Not available.
N V D I Z C
! - - - ! !
N: Set if result is negative
Z: Set if result is 0
C: Set if a “borrow” not occurred (Y > = data)