| Routines

32497: Make BOY WANDER write on a blackboard

Used by BOY WANDER's command lists 32, 46, 50, 54 and 56. Makes BOY WANDER write on the blackboard he's standing next to unless a certain event has already happened or the board is dirty.
Input
H | 206 (BOY WANDER)
32497 | CALL 25213 | Collect the event identifier parameter from the command list
32500 | CALL 31887 | Check whether the event (the arrival of a teacher or the end of the lesson) has happened
32503 | LD BC,26752 | Redirect control to the routine at 26752 (write on board) if the event has not happened, then return to 32509 (below)
32506 | CALL Z,25503
32509 | JP 25484 | Move to the next command in the command list