.TT170 LDX #&FF \ Set the stack pointer to &01FF, which is the standard TXS \ location for the 6502 stack, so this instruction \ effectively resets the stack JSR RESET \ Call RESET to initialise most of the game variables IF _EXECUTIVE JSR DEMON \ Call DEMON to show the demo LDX #&FF \ Set the stack pointer to &01FF, which is the standard TXS \ location for the 6502 stack, so this instruction \ effectively resets the stack JSR RESET \ Call RESET to initialise most of the game variables ENDIF \ Fall through into DEATH2 to start the gameName: TT170 [Show more] Type: Subroutine Category: Start and end Summary: Main entry point for the Elite game code Deep dive: Program flow of the main game loopContext: See this subroutine in context in the source code Variations: See code variations for this subroutine in the different versions References: No direct references to this subroutine in this source file
This is the main entry point for the main game code. It is called after the various setup, decryption and checksum routines in S%, G% and BEGIN have successfully completed.
[X]
Subroutine DEMON (category: Demo)
Show the demo
[X]
Subroutine RESET (category: Start and end)
Reset most variables