![]() |
Routines |
Prev: 43740 | Up: Map | Next: 43976 |
Used by the routine at Main_Game.
|
||||
Demo_Mode | 43888 | XOR A | A=0 | |
43889 | LD (45151),A | Write 0 to; | ||
43892 | LD (39980),A | |||
Get a random number A between 7 and 10.
|
||||
43895 | CALL Random_Number | Call Random_Number. | ||
43898 | AND %00000011 | Keep only bits 0-1. | ||
43900 | ADD A,7 | A+=7. | ||
43902 | LD (43668),A | Write A to 43668. | ||
Get another random number A between 7 and 10.
|
||||
43905 | CALL Random_Number | Call Random_Number. | ||
43908 | AND %00000011 | Keep only bits 0-1. | ||
43910 | ADD A,7 | A+=7. | ||
43912 | LD (43648),A | Write A to Also_Rank. | ||
43915 | LD A,1 | Write 1 to; | ||
43917 | LD (43590),A | |||
43920 | LD (43526),A | |||
Demo mode always uses background #2.
|
||||
43923 | INC A | Write 2 to; | ||
43924 | LD (44852),A | |||
Demo_Mode_0 | 43927 | LD A,(44852) | A=CurrentBackground. | |
43930 | CALL DrawBackground | Call DrawBackground. | ||
Print "DEMO" to the screen.
|
||||
43933 | LD HL,546 | Point to Text_Demo and call Print_String. | ||
43936 | LD DE,45113 | |||
43939 | CALL Print_String | |||
Print the current high score to the screen.
|
||||
43942 | LD HL,45109 | Point to Hi_Score and call Print_HighScore. | ||
43945 | CALL Print_HighScore | |||
43948 | CALL New_Round | Call New_Round. | ||
43951 | CALL Init_Time | Call Init_Time. | ||
43954 | XOR A | Write 0 to 39979. | ||
43955 | LD (39979),A | |||
43958 | CALL 43976 | Call 43976. | ||
43961 | AND A | |||
43962 | RET M | |||
43963 | CALL 44839 | Call 44839. | ||
43966 | LD HL,45151 | Point to Current_Rank and increment it by 1. | ||
43969 | INC (HL) | |||
43970 | LD A,(HL) | If this value is not 4 then jump to Demo_Mode_0. | ||
43971 | CP 4 | |||
43973 | JR NZ,Demo_Mode_0 | |||
43975 | RET | Return. |
Prev: 43740 | Up: Map | Next: 43976 |