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
(flow RTI/RETI into body) |
(linkify) |
||
(5 intermediate revisions by the same user not shown) | |||
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. | ||
Return control back with [[RTI]] or [[RETI]]. | 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), but only after the instruction completes. | ||
Use [[BRK]] to force a software interrupt. | |||
Return control back with [[RTI]] when on the [[65c816]] or [[RETI]] when on the [[SPC700]]. | |||
=== See Also === | === See Also === | ||
* [[NMI]] | * [[NMI]] | ||
* [[IRQ]] | * [[IRQ]] | ||
* [[WAI]] | * [[WAI]] | ||
[[Category:ASM]] | [[Category:ASM]] |
Latest revision as of 22:34, 3 August 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), but only after the instruction completes.
Use BRK to force a software interrupt.
Return control back with RTI when on the 65c816 or RETI when on the SPC700.