Prev: 27648 Up: Map Next: 27934
27818: Game Initialisation
Used by the routines at 27937, InitialiseDemoMode and CheckPassword.
GameInitialisation 27818 CALL PrintGameDisplay Call PrintGameDisplay.
This entry point is used by the routine at 30423.
GameInitialisation_0 27821 LD HL,13312 Write 13312 to *Fuel.
27824 LD (30780),HL
27827 LD HL,30741 HL=30741.
27830 LD (HL),0 Write 0 to *HL.
27832 DEC L Decrease L by one.
27833 LD (HL),0 Write 0 to *HL.
27835 LD L,26 L=26.
27837 LD (HL),1 Write 1 to *HL.
27839 INC L Increment L by one.
27840 LD (HL),0 Write 0 to *HL.
27842 INC L Increment L by one.
27843 LD (HL),0 Write 0 to *HL.
27845 INC L Increment L by one.
27846 LD (HL),178 Write 178 to *HL.
27848 LD L,33 L=33.
27850 LD B,3 B=3.
GameInitialisation_1 27852 LD (HL),128 Write 128 to *HL.
27854 INC L Increment L by one.
27855 DJNZ GameInitialisation_1 Decrease counter by one and loop back to GameInitialisation_1 until counter is zero.
27857 LD B,8 B=8.
GameInitialisation_2 27859 LD (HL),0 Write 0 to *HL.
27861 INC L Increment L by one.
27862 DJNZ GameInitialisation_2 Decrease counter by one and loop back to GameInitialisation_2 until counter is zero.
27864 INC L Increment L by two.
27865 INC L
27866 LD (HL),19 Write 19 to *HL.
27868 INC L Increment L by one.
27869 LD (HL),161 Write 161 to *HL.
27871 INC L Increment L by one.
27872 LD (HL),3 Write 3 to *HL.
27874 INC L Increment L by one.
27875 LD (HL),0 Write 0 to *HL.
27877 INC L Increment L by one.
27878 LD (HL),187 Write 187 to *HL.
27880 INC L Increment L by one.
27881 LD (HL),11 Write 11 to *HL.
27883 INC L Increment L by one.
27884 LD (HL),0 Write 0 to *HL.
27886 CALL 25856 Call 25856.
27889 LD L,16 L=16.
27891 LD A,(30765) Jump to GameInitialisation_5 if the game is not in "demo mode" (the high-order byte of ControlMethod_Pointer does not contain 115).
27894 CP 115
27896 JR NZ,GameInitialisation_5
27898 LD HL,41440 HL=41440.
GameInitialisation_3 27901 LD A,(HL) A=*HL.
27902 DEC L Decrease L by one.
27903 DEC A Decrease A by one.
27904 JR Z,GameInitialisation_4 Jump to GameInitialisation_4 if A is zero.
27906 CP 49 Jump to GameInitialisation_3 if A is higher than 49.
27908 JR NC,GameInitialisation_3
27910 CP 45 Jump to GameInitialisation_3 if A is lower than 45.
27912 JR C,GameInitialisation_3
GameInitialisation_4 27914 LD A,L A=L.
27915 INC A Increment A by one.
27916 LD (30766),A Write A to *30766.
27919 DEC L Decrease L by two.
27920 DEC L
GameInitialisation_5 27921 LD H,158 H=158.
27923 XOR A A=0.
27924 CALL 26624 Call 26624.
This entry point is used by the routine at 28184.
GameInitialisation_6 27927 LD A,(23672) A=*FRAMES.
27930 INC A Increment A by one.
27931 JP 60406 Jump to 60406.
Prev: 27648 Up: Map Next: 27934