Prev: 7576 Up: Map Next: 75A3
758C: 'B' pressed - raise/lower blind
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 'B' is pressed.
Input
H 0xE6 (Sam)
758C CALL $F6B0 Is Sam standing next to a light switch or a window blind?
758F JR Z,$75A0 Jump if not
7591 AND $1C Is Sam standing next to a window blind?
7593 JR Z,$75A0 Jump if not
7595 CP $08 Set the zero flag if Sam is standing next to the right-hand window of a pair
7597 LD A,$01 Bit 0 set: right-hand window blind toggle
7599 JR Z,$759D Jump if Sam is standing next to the right-hand window of a pair
759B LD A,$40 Bit 6 set: left-hand window blind toggle
759D CALL $F499 Raise or lower the window blind
75A0 JP $F304 Raise Sam's arm and make a sound effect
Prev: 7576 Up: Map Next: 75A3