Skip to navigation


Utility routines: WaitFor2NMIs

[NES version, Bank 7]

Name: WaitFor2NMIs [Show more] Type: Subroutine Category: Utility routines Summary: Wait until two NMI interrupts have passed (i.e. the next two VBlanks)
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * FadeToBlack calls WaitFor2NMIs * FadeToColour calls WaitFor2NMIs

Returns: A A is preserved
.WaitFor2NMIs JSR WaitForNMI ; Wait until the next NMI interrupt has passed (i.e. the ; next VBlank) ; Fall through into WaitForNMI to wait for the second ; NMI interrupt