CLI

From NES Hacker Wiki
Jump to: navigation, search
Clear Interrupt Disable Flag
Opcode: CLI
Operation: 0 → I
Status Register: Status-List.png
Status-Ignore.pngStatus-Space.pngStatus-Ignore.pngStatus-Space.pngStatus-Ignore.pngStatus-Space.pngStatus-Clear.pngStatus-Space.pngStatus-Ignore.pngStatus-Space.pngStatus-Ignore.png

CLI (Clear Interrupt Disable Flag) clears the Interrupt Flag in the Processor Status Register by setting the 2nd bit 0. To set the interrupt disable flag, use SEI.

Operation

This pseudo C code shows how the CLI opcode functions when it is executed.

SET_INTERRUPT((0));           // Set the 2nd bit of the processor status to 0.

Addressing Modes

Addressing Mode Assembly Language Form Opcode # Bytes # Cycles
Implied CLI 58 1 2

Examples