Routines
| Prev: E0FD | Up: Map | Next: E135 |
E104: Action record: the bookcase swings away (shared 18)
|
||||||||||||
| E104 | DEFB $08,$60 | Action record header: flags $08; byte 1 $60 | ||||||||||
| E106 | LD A,$01 | Load A with $01 - CAAE = 1 (the 'describe the room again' flag) | ||||||||||
| E108 | LD ($CAAE),A | Store A in "Flag: the player's view has changed" (CAAE) | ||||||||||
| E10B | LD A,($A036) | Read $A036 in "Game variables" into A - Only the player ($A036 = 0) goes on | ||||||||||
| E10E | AND A | Clear the carry flag for the caller (A is unchanged) | ||||||||||
| E10F | RET NZ | If A is not zero, return | ||||||||||
| E110 | CALL $DF5B | (DF5B) | ||||||||||
| E113 | LD IX,($A013) | IX = the direct object's record ($A013) | ||||||||||
| E117 | BIT 5,(IX+$05) | Test bit 5 of byte +5 of the record at IX - Already marked (+5 bit 5)? Return | ||||||||||
| E11B | RET NZ | If bit 5 of byte +5 of the record at IX is set, return | ||||||||||
| E11C | SET 5,(IX+$05) | Mark it (+5 bit 5) | ||||||||||
| E120 | LD HL,$7BF7 | Point HL at the message "IT HAS BEEN SWUNG AWAY FROM THE WALL REVEALING A... (7BF7) | ||||||||||
| E123 | LD (IX+$0D),L | Store L in byte +13 of the record at IX | ||||||||||
| E126 | LD (IX+$0E),H | Store H in byte +14 of the record at IX | ||||||||||
| E129 | LD HL,$7C13 | Point HL at the message "AS YOU RUN YOUR HANDS OVER THE BOOKS YOU TOUCH A... (7C13) | ||||||||||
| E12C | CALL $A59F | Call the routine "Print the message at HL" (A59F) | ||||||||||
| E12F | CALL $A2A2 | Call the routine "Print a newline (A kept)" (A2A2) | ||||||||||
| E132 | OR $01 | Make A non-zero, which clears the zero flag, and hand that back to the caller | ||||||||||
| E134 | RET | Return to the caller | ||||||||||
| Prev: E0FD | Up: Map | Next: E135 |