CLI

From C64-Wiki
Jump to navigationJump to search

CLI (short for "CLear Interrupt flag") is the mnemonic for a machine language instruction which clears the interrupt flag, so that the CPU will respond to IRQ interrupt events. To disable the response to IRQs, use the complementary instruction SEI.

Addressing mode[edit | edit source]

Opcode Addressing
mode
Assembler
format
Length
in bytes
Number of
cycles
Dec Hex
88 58 Implied CLI 1 2

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

CPU flags[edit | edit source]

CLI affects no processor status flags other than the interrupt status flag.