Routines |
Prev: 43332 | Up: Map | Next: 43423 |
Used by the routine at GameEntryPoint.
|
||||
InitialiseNewGame | 43386 | LD HL,43904 | HL=1UP_Lives. | |
Set starting lives.
|
||||
43389 | LD (HL),3 | Write 3 to *HL. | ||
43391 | INC HL | Increment HL by one. | ||
Set starting level.
|
||||
43392 | LD (HL),0 | Write 0 to *HL. | ||
43394 | INC HL | Increment HL by one. | ||
Set starting score to 0000.
|
||||
43395 | LD (HL),0 | Write 0 to *HL. | ||
43397 | INC HL | Increment HL by one. | ||
43398 | LD (HL),0 | Write 0 to *HL. | ||
43400 | INC HL | Increment HL by one. | ||
43401 | LD (HL),0 | Write 0 to *HL. | ||
43403 | INC HL | Increment HL by one. | ||
Remember where we are for the copy routine ahead.
|
||||
43404 | LD E,L | E=L. | ||
43405 | LD D,H | D=H. | ||
Set the active player to be 1UP.
|
||||
43406 | LD HL,43904 | Write 1UP_Lives to ActivePlayer. | ||
43409 | LD (43902),HL | |||
43412 | LD BC,5 | BC=0005. | ||
43415 | LDIR | Copy the same values to 2UP. | ||
Reset the game flags for the new game.
|
||||
43417 | LD HL,43914 | Write 0 to Game_Flags. | ||
43420 | LD (HL),0 | |||
43422 | RET | Return. |
Prev: 43332 | Up: Map | Next: 43423 |