.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. We need to do this \ because the loader code in elite-loader.asm pushes \ code onto the stack, and this effectively removes that \ code so we start afresh \ Fall through into BR1 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: This subroutine is called as follows: * S% (Part 1 of 2) calls TT170
This is the main entry point for the main game code.