.StartGame 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 BR1 ; Reset a number of variables, ready to start a new game ; Fall through into the BAY routine to go to the docking ; bay (i.e. show the Status Mode screen)Name: StartGame [Show more] Type: Subroutine Category: Start and end Summary: Reset the stack and game variables, and start the game by going to the docking bayContext: See this subroutine in context in the source code References: This subroutine is called as follows: * StartGame_b0 calls StartGame * WARP calls StartGame
[X]
Subroutine BR1 (category: Start and end)
Reset a number of variables, ready to start a new game