Prev: F6C8 Up: Map Next: F6EA
F6D5: Start a new game or enter demo mode
Used by the routines at 54A0, 5D63, F413, F55F and F6BE.
F6D5 LD SP,$5CFE Put the stack somewhere safe
F6D8 LD HL,$7FDE A=0xFF if we're in demo mode, 0x00 if a game has just ended, or 0x01 if ERIC has just gone up a year
F6DB LD A,(HL)
F6DC INC A
F6DD PUSH HL
F6DE NOP Who knows what used to happen here?
F6DF NOP
F6E0 NOP
F6E1 POP HL
F6E2 LD A,(HL) A=0xFF if we're in demo mode, 0x00 if a game has just ended, or 0x01 if ERIC has just gone up a year
F6E3 RRCA 0x00 becomes 0xFF (demo mode), and 0x01 and 0xFF become 0x00
F6E4 CCF
F6E5 SBC A,A
F6E6 LD (HL),A Store this in 7FDE
F6E7 CALL $F5BE Prepare for a new game or demo mode, then enter the main loop at F6EA
Prev: F6C8 Up: Map Next: F6EA