Routines |
Prev: 6386 | Up: Map | Next: 63DA |
Used by the routine at StartGame.
|
||||
GameInit | 6391 | LD A,$03 | Write starting lives to Player_Lives (duplicate of 5FF6 - possibly so POKEs would appear to not work?) | |
6393 | LD ($5E3D),A | |||
This entry point is used by the routine at HandlerCup.
|
||||
GameInit_0 | 6396 | XOR A | Write 00 to Cups_Collected. | |
6397 | LD ($5E3C),A | |||
639A | CALL $6498 | Call 6498. | ||
Reset miles and time.
|
||||
639D | LD HL,$5E2D | HL=Miles. | ||
63A0 | LD B,$07 | B=07 (counter). | ||
GameInit_Reset | 63A2 | LD (HL),$00 | Write 00 to HL. | |
63A4 | INC HL | Increment HL by one. | ||
63A5 | DJNZ GameInit_Reset | Decrease counter by one and loop back to GameInit_Reset until counter is zero. | ||
This entry point is used by the routine at GameOver.
|
||||
PlayerInit | 63A7 | CALL CreateWindow | Call CreateWindow. | |
63AA | CALL $653E | Call 653E. | ||
63AD | CALL $656E | Call 656E. | ||
63B0 | CALL $6BFE | Call 6BFE. | ||
63B3 | CALL $6A09 | Call 6A09. | ||
63B6 | LD HL,$C000 | Write C000 (the maximum value for fuel) to Fuel_LSB. | ||
63B9 | LD ($5E0A),HL | |||
63BC | LD H,$00 | Write 0000 to; | ||
63BE | LD ($5E0C),HL | |||
63C1 | LD ($5E0E),HL | |||
63C4 | LD ($5E10),HL | |||
63C7 | LD HL,$0C40 | Write 0C40 to PlayerMapPosition. | ||
63CA | LD ($5E05),HL | |||
63CD | LD HL,$0640 | Write 0640 to 5E08. | ||
63D0 | LD ($5E08),HL | |||
63D3 | XOR A | Write 00 to 5E4F. | ||
63D4 | LD ($5E4F),A | |||
63D7 | JP $6BFE | Jump to 6BFE. |
Prev: 6386 | Up: Map | Next: 63DA |