Table of Contents Previous topic Next topic
MICROPROCESSOR INSTRUCTION REFERENCE->CPY
CPY Compare index register Y with memory
Y - M:(M+1)
Condition Code Register:
C Set if carry generated, else cleared
V Set on overflow, else cleared
Z Set if result Zero, else cleared
N Set if result Negative, else cleared
I Not affected
H Not affected
Addressing mode | Assembler syntax |
Immed.: | CPY #<exprn.> |
Direct: | CPY <exprn.> |
Index X: | CPY <exprn.>,X |
Index Y: | CPY <exprn.>,Y |
Extend: | CPY <exprn.> |