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
(flow RTI/RETI into body)
(descibe BRK)
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.
Use [[BRK]] to force a software interrupt.


Return control back with [[RTI]] or [[RETI]].
Return control back with [[RTI]] or [[RETI]].
Line 6: Line 8:
* [[NMI]]
* [[NMI]]
* [[IRQ]]
* [[IRQ]]
* [[BRK]]
* [[WAI]]
* [[WAI]]


[[Category:ASM]]
[[Category:ASM]]

Revision as of 04:57, 22 July 2024

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

Use BRK to force a software interrupt.

Return control back with RTI or RETI.

See Also