Prev: 8E34 Up: Map Next: 8E5A
8E4E: LOOK THROUGH (a door or window)
The LOOK THROUGH handler of every door (and, via A678, the window). The door must be open (otherwise 'the door is closed'), and the actor must not be shut inside anything. Then it continues as 8E5A.
8E4E LD A,($B5D9) A = the target (the door or window)
8E51 CALL $9B25 IX = its own record
8E54 CALL $A4C3 Is it open?
8E57 JP Z,$A09C No: say so and stop ("the door is closed.")
Prev: 8E34 Up: Map Next: 8E5A