From C64-Wiki
Jump to navigationJump to search

PLP (short for "PulL Processor flags") is the mnemonic for a machine language instruction which retrieves a set of status flags previously "pushed" onto the stack (usually by a PHP instruction) from the stack, and adjusting the stack pointer to reflect the removal of a byte.

Addressing mode[edit | edit source]

Opcode Addressing
in bytes
Number of
Dec Hex
40 28 Implied PLP 1 4

PLP only supports the Implied addressing mode, as shown in the table at right.

CPU flags[edit | edit source]

PLP "affects" potentially all seven processor status flag, and in theory even the unused bit #5 (weight 32/$20) in the byte formed by the flags, since a new "state" for each flag is retrieved from the stack.