A 3-letter opcode for the 6502 processor. It is one of the most frequently used operations. This opcode loads an 8-bit value in the X register. It can then, for example, be transferred to the Accumulator by using the TXA instruction.

Back to the 6502 opcodes metanode

A 6502 instruction that loads a new value into the X register.
  • Function: N => X
  • Updates flags: S . . . . . Z .
  • Opcode numbers:
    imm   $A2
    dp    $A6
    d,y   $B6
    abs   $AE
    a,y   $BE

Similar: LDA | LDY | STX
See also: 6502 instructions | 6502 addressing modes

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