Prev: 30070 Up: Map Next: 30115
30092: 'B' pressed - raise/lower blind
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 'B' is pressed.
Input
H 230 (Sam)
30092 CALL 63152 Is Sam standing next to a light switch or a window blind?
30095 JR Z,30112 Jump if not
30097 AND 28 Is Sam standing next to a window blind?
30099 JR Z,30112 Jump if not
30101 CP 8 Set the zero flag if Sam is standing next to the right-hand window of a pair
30103 LD A,1 Bit 0 set: right-hand window blind toggle
30105 JR Z,30109 Jump if Sam is standing next to the right-hand window of a pair
30107 LD A,64 Bit 6 set: left-hand window blind toggle
30109 CALL 62617 Raise or lower the window blind
30112 JP 62212 Raise Sam's arm and make a sound effect
Prev: 30070 Up: Map Next: 30115