Prev: 7565 Up: Map Next: 758C
7576: 'L' pressed - light on/off
The address of this routine is found in the table of keypress handling routines at ED00. It is called from the main loop at F02B when 'L' is pressed.
H 0xE6 (Sam)
7576 CALL $F436 Is Sam standing next to a light switch?
7579 JR Z,$7589 Jump if not
757B BIT 5,A Does the light switch affect the light in only one window or window-pair?
757D JR Z,$7584 Jump if so
757F CALL $F4A6 Switch the lights on or off
7582 JR $7587
7584 CALL $F497 Switch the light on or off
7587 LD H,$E6 0xE6=Sam
7589 JP $F304 Raise Sam's arm and make a sound effect
Prev: 7565 Up: Map Next: 758C