Changes

Jump to: navigation, search

6502

4 bytes removed, 22 September
/* Interrupt hijacking */
=== Interrupt hijacking ===
On NMOS, if NMI is asserted during the first 4 ticks of a BRK instruction, the BRK instruction will execute normally at first (PC increments will occur and P will be pushed with the BF flag setto 1), but execution will branch to the NMI vector instead of the IRQ/BRK vector. On CMOS, this situation is correctly handled by executing BRK and then servicing the interrupt.
An IRQ can also hijack a BRK, though it won't be as visible since they use the same interrupt vector.
8,996
edits