![]() |
Routines |
| Prev: 43220 | Up: Map | Next: 43386 |
|
Used by the routine at GameEntryPoint.
|
||||
| InitialiseStreet | 43332 | LD HL,(43902) | HL=*ActivePlayer. | |
| 43335 | INC HL | Increment HL by one. | ||
|
Fetch the active players level.
|
||||
| 43336 | LD A,(HL) | A=*HL. | ||
|
Point to the active players score.
|
||||
| 43337 | INC HL | Increment HL by one. | ||
|
Copy the players score to the active players score memory location.
|
||||
| 43338 | LD DE,52118 | DE=ActivePlayer_Score. | ||
| 43341 | LD BC,3 | BC=0003. | ||
| 43344 | LDIR | Copy HL to DE 0003 times. | ||
| 43346 | LD E,A | E=current level. | ||
| 43347 | LD HL,47722 | HL=47722. | ||
| 43350 | LD (HL),0 | Write 0 to *HL. | ||
| 43352 | CP 10 | Jump to InitialiseStreet_Max if A is lower than 10. | ||
| 43354 | JR C,InitialiseStreet_Max | |||
| 43356 | LD (HL),8 | Write 8 to *HL. | ||
|
Create an offset in DE for the current level.
|
||||
| InitialiseStreet_Max | 43358 | LD D,0 | D=0. | |
| 43360 | LD IX,45171 | IX=Table_Levels. | ||
| 43364 | ADD IX,DE | IX+=DE. | ||
|
Fetch the pointer to the level data.
|
||||
| 43366 | LD L,(IX+0) | L=*IX+0. | ||
| 43369 | LD H,(IX+1) | H=*IX+1. | ||
| 43372 | LD DE,49776 | DE=String_NumberOfBins. | ||
| 43375 | LD BC,535 | BC=0535. | ||
| 43378 | LDIR | Copy all the level data to the active game, starting from String_NumberOfBins. | ||
| 43380 | LD A,0 | Write 0 to 45064. | ||
| 43382 | LD (45064),A | |||
| 43385 | RET | Return. | ||
| Prev: 43220 | Up: Map | Next: 43386 |