| Routines

717C: Make a policeman switch a light on if possible

Used by the routine at 72B1.
Input
H | 0xDE or 0xDF (policeman)
717C | CALL $F436 | Is the policeman standing next to a light switch?
717F | RET Z | Return if not
7180 | BIT 5,A | Set the zero flag if the light switch affects the light in only one window or window-pair
7182 | LD A,(BC) | A=window flags for the policeman's location
7183 | JP NZ,$F4A3 | Jump if the light switch affects the light in more than one window or window-pair
7186 | BIT 5,A | Is the light switch here in the 'on' position?
7188 | RET Z | Return if so
7189 | JP $F497 | Switch the light on