A 3-letter opcode for the 6502 processor. This opcode increases the 8-bit value in the X register by 1. This wraps around when the end is reached (that is, increasing a value of 255 ($ff) by one turns the value into zero).

Back to the 6502 opcodes metanode

1. A member of INXS. (Just kidding.)

2. A 6502 instruction that adds 1 to register X, wrapping the value to zero if it's already 255.

  • Function: X++
  • Updates flags: S . . . . . Z .
  • Opcode number: $E8 (2 cycles)

Similar: DEC | DEY | INC | INX | INY
See also: 6502 instructions | 6502 addressing modes

Log in or register to write something here or to contact authors.