![]() |
Routines |
| Prev: AF1C | Up: Map | Next: B065 |
|
Turn Jetman, if he is riding the rover, or else the parked rover into falling debris (type E0).
|
||||
|
Convert Jetman or the rover into falling debris.
|
||||
| Handler_Missile_FallingDebris | B03B | LD A,($6078) | Fetch Jetman_Slot. | |
| B03E | SUB $12 | Subtract 12. | ||
| B040 | CP $08 | Compare it against 08. | ||
| B042 | LD BC,$E004 | Set B to the falling debris type E0 and C to 04. Loading BC keeps the flags from the compare. | ||
| B045 | 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.
|
||||
| B047 | LD A,B | Copy E0 into A. | ||
| B048 | LD ($6090),A | Write it to Rover_Slot. | ||
| B04B | LD A,C | Copy 04 into A. | ||
| B04C | LD ($6098),A | Write it to 6098. | ||
| B04F | LD DE,$6092 | DE=Rover_Position. | ||
| B052 | CALL FillDebrisSlots | Call FillDebrisSlots. | ||
| B055 | RET | Return. | ||
|
When Jetman is on the rover, turn Jetman into falling debris.
|
||||
| Handler_Missile_JetmanDebris | B056 | LD A,B | Copy E0 into A. | |
| B057 | LD ($6078),A | Write it to Jetman_Slot. | ||
| B05A | LD A,C | Copy 04 into A. | ||
| B05B | LD ($6080),A | Write it to Jetman_Flags. | ||
| B05E | LD DE,$607A | DE=Jetman_Position. | ||
| B061 | CALL FillDebrisSlots | Call FillDebrisSlots. | ||
| B064 | RET | Return. | ||
| Prev: AF1C | Up: Map | Next: B065 |