PLA (command)

From C64-Wiki
Jump to navigationJump to search
Disambiguation The title of this article is ambiguous. PLA (Disambiguation).


PLA (short for "PulL Accumulator") is the mnemonic for a machine language instruction which retrieves a byte from the stack and stores it in the accumulator, and adjusts the stack pointer to reflect the removal of that byte.

Addressing mode[edit | edit source]

Opcode Addressing
mode
Assembler
format
Length
in bytes
Number of
cycles
Dec Hex
104 $68 Implied PLA 1 4

PLA only supports the implied addressing mode, as shown in the table above.

CPU flags[edit | edit source]

PLA affects 2 of the CPU's status flags:

  • The negative status flag is set if the retrieved byte is negative, i.e. has its most significant bit set.
  • The zero flag is set if the retrieved byte is zero, or cleared if it is non-zero.