CPX

created by yerricde
(thing) by yerricde (10.1 mon) (print)   (I like it!) Fri Mar 30 2001 at 1:24:35
A 6502 instruction that does a subtraction X - N, throwing away the result but updating the flags. Often used for comparisons.
  • Function: X - N => bit bucket
  • Updates flags: S . . . . . Z C
  • Opcode numbers:
    imm   $E0
    dp    $E4
    abs   $EC
    

Similar: CMP | CPY
See also: 6502 instructions | 6502 addressing modes

Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.