![]() |
Routines |
| Prev: 59584 | Up: Map | Next: 59630 |
|
|
||||
|
If FIRE is pressed to bring up the spell menu, Maroc stops dead (both vertical/horizontal movement), rather than slowing down.
First check whether Maroc is in a tunnel room. The spell list is inaccessible here so pressing FIRE does nothing:
|
||||
| 59605 | LD A,(60087) | Get Maroc's current room number | ||
| 59608 | CP 224 | Tunnel rooms are from room number 224 onwards | ||
| 59610 | JR NC,59630 | |||
|
Maroc is NOT in a tunnel room so the FIRE button is enabled:
|
||||
| 59612 | LD A,(60210) | |||
| 59615 | CP 0 | Check FIRE control | ||
| 59617 | JR Z,59630 | If not pressed, skip to next routine | ||
|
FIRE button pressed:
|
||||
| 59619 | LD A,0 | |||
| 59621 | LD (60165),A | Set Maroc's vertical movement speed to zero | ||
| 59624 | LD (60164),A | Set Maroc's horizontal movement speed to zero | ||
| 59627 | JP 60018 | Continue on to clear the scroll spell menu | ||
| Prev: 59584 | Up: Map | Next: 59630 |