| Routines

63189: Start a new game or enter demo mode

Used by the routines at 21664, 23907, 62483, 62815 and 63166.
63189 | LD SP,23806 | Put the stack somewhere safe
63192 | LD HL,32734 | A=255 if we're in demo mode, 0 if a game has just ended, or 1 if ERIC has just gone up a year
63195 | LD A,(HL)
63196 | INC A |
63197 | PUSH HL |
63198 | NOP | Who knows what used to happen here?
63199 | NOP
63200 | NOP
63201 | POP HL |
63202 | LD A,(HL) | A=255 if we're in demo mode, 0 if a game has just ended, or 1 if ERIC has just gone up a year
63203 | RRCA | 0 becomes 255 (demo mode), and 1 and 255 become 0
63204 | CCF
63205 | SBC A,A
63206 | LD (HL),A | Store this in 32734
63207 | CALL 62910 | Prepare for a new game or demo mode, then enter the main loop at 63210