.TerminateGame LDA #0 \ Turn off the engine sound JSR ToggleEngineSound JSR UpdateHighScore \ If this is a high score, update the high score JSR DisplayScore \ Print the scores on-screen .term1 LDX #&B6 \ Scan the keyboard to see if RETURN is being pressed JSR ScanKeyboard BNE term1 \ Loop back to keep scanning until RETURN is pressed RTS \ Return from the subroutineName: TerminateGame [Show more] Type: Subroutine Category: Setup Summary: Terminate the current gameContext: See this subroutine in context in the source code References: This subroutine is called as follows: * AlienInAcornsville calls TerminateGame * Crash calls TerminateGame * MainLoop (Part 7 of 15) calls TerminateGame
[X]
Subroutine DisplayScore (category: Scoring)
Print the scores on-screen
[X]
Subroutine ScanKeyboard (category: Keyboard)
Scan the keyboard for a specific key
[X]
Subroutine ToggleEngineSound (category: Sound)
Turn the engine sound on or off
[X]
Subroutine UpdateHighScore (category: Scoring)
If this is a high score, update the high score
[X]
Label term1 is local to this routine