| Routines

29052: Make a policeman switch a light on if possible

Used by the routine at 29361.
Input
H | 222 or 223 (policeman)
29052 | CALL 62518 | Is the policeman standing next to a light switch?
29055 | RET Z | Return if not
29056 | BIT 5,A | Set the zero flag if the light switch affects the light in only one window or window-pair
29058 | LD A,(BC) | A=window flags for the policeman's location
29059 | JP NZ,62627 | Jump if the light switch affects the light in more than one window or window-pair
29062 | BIT 5,A | Is the light switch here in the 'on' position?
29064 | RET Z | Return if so
29065 | JP 62615 | Switch the light on