![]() |
Routines |
| Prev: 44828 | Up: Map | Next: 45157 |
|
Turn Jetman, if he is riding the rover, or else the parked rover into falling debris (type 224).
|
||||
|
Convert Jetman or the rover into falling debris.
|
||||
| Handler_Missile_FallingDebris | 45115 | LD A,(24696) | Fetch Jetman_Slot. | |
| 45118 | SUB 18 | Subtract 18. | ||
| 45120 | CP 8 | Compare it against 8. | ||
| 45122 | LD BC,57348 | Set B to the falling debris type 224 and C to 4. Loading BC keeps the flags from the compare. | ||
| 45125 | JR C,Handler_Missile_JetmanDebris | Jump to Handler_Missile_JetmanDebris if Jetman is riding the rover. | ||
|
When the rover is parked, turn it into falling debris.
|
||||
| 45127 | LD A,B | Copy 224 into A. | ||
| 45128 | LD (24720),A | Write it to Rover_Slot. | ||
| 45131 | LD A,C | Copy 4 into A. | ||
| 45132 | LD (24728),A | Write it to 24728. | ||
| 45135 | LD DE,24722 | DE=Rover_Position. | ||
| 45138 | CALL FillDebrisSlots | Call FillDebrisSlots. | ||
| 45141 | RET | Return. | ||
|
When Jetman is on the rover, turn Jetman into falling debris.
|
||||
| Handler_Missile_JetmanDebris | 45142 | LD A,B | Copy 224 into A. | |
| 45143 | LD (24696),A | Write it to Jetman_Slot. | ||
| 45146 | LD A,C | Copy 4 into A. | ||
| 45147 | LD (24704),A | Write it to Jetman_Flags. | ||
| 45150 | LD DE,24698 | DE=Jetman_Position. | ||
| 45153 | CALL FillDebrisSlots | Call FillDebrisSlots. | ||
| 45156 | RET | Return. | ||
| Prev: 44828 | Up: Map | Next: 45157 |