Prev: 38214 Up: Map Next: 38245
38221: 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 38221 LD A,(IX+5) Fetch the attribute of the door.
38224 AND %11110111 Reset bit 3.
38226 LD (IX+5),A Write it back.
38229 PUSH IX Stash IX on the stack.
38231 CALL GetOtherDoorHalf Call GetOtherDoorHalf to point IX at the other half of the door.
38234 LD A,(IX+5) Fetch the attribute of the other half.
38237 AND %11110111 Reset bit 3.
38239 LD (IX+5),A Write it back.
38242 POP IX Restore IX from the stack.
38244 RET Return.
Prev: 38214 Up: Map Next: 38245