From NES Hacker Wiki
Revision as of 15:17, 11 April 2014 by TheAlmightyGuru (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Clear Interrupt Disable Flag
Opcode: CLI
Operation: 0 → I
Status Register: Status-List.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.


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