![]() |
Routines |
| Prev: 97F4 | Up: Map | Next: 980B |
|
Used by the routines at SIDE_DOOR_UNLOCKED, GOBLINS_DOOR_OPENED, BARREL_THROWN, THORIN_KILLED, BOAT_BOARDED and SIDE_DOOR_CLOSED.
Otherwise it leaves the handler that called it. This is what the records keyed 0 after a handler use: they run whether or not the handler succeeded, and this is how they find out.
|
||||
| ONLY_IF_DONE | 97FF | PUSH BC | Done for real, and it worked: carry on | |
| 9800 | LD BC,(DOING_IT) | |||
| 9804 | LD A,C | |||
| 9805 | AND B | |||
| 9806 | JR NZ,ONLY_IF_DONE_0 | |||
| 9808 | POP BC | Otherwise out of the caller | ||
| ONLY_IF_DONE_0 | 9809 | POP BC | ||
| 980A | RET | |||
| Prev: 97F4 | Up: Map | Next: 980B |