Prev: 48947 Up: Map Next: 49053
48992: Start game
Used by the routine at 48922.
48992 LD HL,(23613) Replace ERRSP stack pointer with the address 51043 (start of pause game routine)
48995 LD SP,HL
48996 POP HL
48997 LD HL,51043
49000 PUSH HL
Identify the control method (1-4) that was selected on the first game menu (35778).
Sets the HL register pair to point to the address containing the input values to check for that control method.
49001 LD A,(48920) Game control choice (1-4)
49004 CP 1
49006 JR NZ,49013
49008 LD HL,60168 Kempston joystick selected
49011 JR 49034
49013 CP 2 AGF/cursor joystick selected
49015 JR NZ,49022
49017 LD HL,60190
49020 JR 49034
49022 CP 3
49024 JR NZ,49031
49026 LD HL,60211 Sinclair joystick selected
49029 JR 49034
49031 LD HL,60174 Keyboard selected
Store the address holding the set of control input values.
49034 LD (60166),HL
...and check if we need to set up a new game or not:
49037 LD A,(48921) Is it a new game, or has a saved game been loaded?
49040 CP 0
49042 JR Z,49053 New game - jump to game setup
49044 LD A,(60087) Game loaded. Copy room number into buffer.
49047 LD (60080),A
49050 JP 55628 No need for intro/game setup for loaded data - jump straight into game
Prev: 48947 Up: Map Next: 49053