Prev: 30053 Up: Map Next: 30092
30070: 'L' pressed - light on/off
The address of this routine is found in the table of keypress handling routines at 60672. It is called from the main loop at 61483 when 'L' is pressed.
Input
H 230 (Sam)
30070 CALL 62518 Is Sam standing next to a light switch?
30073 JR Z,30089 Jump if not
30075 BIT 5,A Does the light switch affect the light in only one window or window-pair?
30077 JR Z,30084 Jump if so
30079 CALL 62630 Switch the lights on or off
30082 JR 30087
30084 CALL 62615 Switch the light on or off
30087 LD H,230 230=Sam
30089 JP 62212 Raise Sam's arm and make a sound effect
Prev: 30053 Up: Map Next: 30092