Prev: F532 Up: Map Next: F55F
F54A: Make MR WACKER find the truant ERIC
The address of this interruptible subcommand routine is placed into bytes 0x09 and 0x0A of MR WACKER's buffer by the routine at 7D36 after ALBERT has spotted ERIC trying to escape and raised the alarm.
F54A LD L,$1D Set bit 7 of byte 0x1D of MR WACKER's buffer, making him run
F54C SET 7,(HL)
F54E LD L,$00 Point HL at byte 0x00 of MR WACKER's buffer
F550 BIT 0,(HL) Is MR WACKER midstride?
F552 JP NZ,$655E Finish the stride if so
Now check whether a command list restart has been requested. This request will have been made if the lesson in which MR WACKER started chasing ERIC has ended, and the next lesson has just begun (see F74D).
F555 LD L,$1D Has a command list restart been requested (i.e. should MR WACKER end the chase now)?
F557 BIT 0,(HL)
F559 JP NZ,$7E8F Jump if so
F55C JP $6558 Otherwise continue the hunt for ERIC
Prev: F532 Up: Map Next: F55F