We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS

Interrupt Handler: Difference between revisions

From SnesLab
Jump to: navigation, search
(what ISR stands for)
(can't interrupt mid-instruction)
Line 1: Line 1:
An '''Interrupt Handler''' is a subroutine which the CPU automatically runs when an interrupt occurs.
An '''Interrupt Handler''' is a subroutine which the CPU automatically runs when an interrupt occurs.


ISR stands for "interrupt service routine."
ISR stands for "interrupt service routine." Interrupts are never serviced when an instruction is only partially finished running (except if you count MVP/MVN which can be interrupted once every 7 cycles).


Use [[BRK]] to force a software interrupt.
Use [[BRK]] to force a software interrupt.

Revision as of 19:20, 31 July 2024

An Interrupt Handler is a subroutine which the CPU automatically runs when an interrupt occurs.

ISR stands for "interrupt service routine." Interrupts are never serviced when an instruction is only partially finished running (except if you count MVP/MVN which can be interrupted once every 7 cycles).

Use BRK to force a software interrupt.

Return control back with RTI or RETI.

See Also