Skip to navigation

Elite on the BBC Micro and NES

Sound: ResetMusicAfterNMI

[NES version, Bank 7]

Name: ResetMusicAfterNMI [Show more] Type: Subroutine Category: Sound Summary: Wait for the next NMI before resetting the current tune to 0 and stopping the music
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * BR1 calls ResetMusicAfterNMI * DEATH calls ResetMusicAfterNMI * DOKEY calls ResetMusicAfterNMI * DrawTitleScreen calls ResetMusicAfterNMI * Main flight loop (Part 9 of 16) calls ResetMusicAfterNMI * TT102 calls ResetMusicAfterNMI * TT18 calls ResetMusicAfterNMI
.ResetMusicAfterNMI JSR WaitForNMI ; Wait until the next NMI interrupt has passed (i.e. the ; next VBlank) ; Fall through into ResetMusic to reset the current tune ; to 0 and stop the music