Skip to navigation

Elite on the BBC Micro

Start and end: TT170 (Master version)

Name: TT170 [View in context] Type: Subroutine [Compare versions] Category: Start and end Summary: Main entry point for the Elite game code Deep dive: Program flow of the main game loop
This is the main entry point for the main game code.
.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 \ Fall through into DEATH2 to start the game