Prev: 9546 Up: Map Next: 9565
954D: Open Doorway
Used by the routines at CheckDoorKey, HandlerClock and HandlerDoorACGExit.
Resets bit 3 of the attribute of both halves of a door.
Input
IX One half of the door
OpenDoorway 954D LD A,(IX+$05) Fetch the attribute of the door.
9550 AND %11110111 Reset bit 3.
9552 LD (IX+$05),A Write it back.
9555 PUSH IX Stash IX on the stack.
9557 CALL GetOtherDoorHalf Call GetOtherDoorHalf to point IX at the other half of the door.
955A LD A,(IX+$05) Fetch the attribute of the other half.
955D AND %11110111 Reset bit 3.
955F LD (IX+$05),A Write it back.
9562 POP IX Restore IX from the stack.
9564 RET Return.
Prev: 9546 Up: Map Next: 9565