Skip to navigation


Setup: TerminateGame

Name: TerminateGame [Show more] Type: Subroutine Category: Setup Summary: Terminate the current game
Context: 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
.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 subroutine