Routines
| Prev: DC19 | Up: Map | Next: DC7B |
DC57: Action record: default for verb 28 (GO THROUGH)
|
GO THROUGH <door>. The characters use it constantly - Chief Constable Straker, the cook, the gardener, Lestrade, the local policeman, Phipps and others walk through doors with it - and the player can too. The verb becomes a GO in the door's direction. In the runs sampled the actor's room (+15) changed to the room on the other side of the door (Lestrade through the solid door, room 94 to 97; Straker through the large oak door, 63 to 64).
|
||||||||||||
| DC57 | DEFB $4B,$20,$4E,$DC | Action record header: flags $4B; bit 6: pre-check at DC4E; byte 1 $20 | ||||||||||
| DC5B | LD A,(IX+$00) | IX = the exit through the door (pre-check $DCA8): its direction (+0)... | ||||||||||
| DC5E | LD ($A033),A | ...becomes the verb ($A033): the command turns into GO <direction> | ||||||||||
| DC61 | XOR A | Clear A to zero (and the carry flag) - No direct object ($A00F = 0, $A034 = $FF) | ||||||||||
| DC62 | LD ($A00F),A | Store A in $A00F in "Game variables" | ||||||||||
| DC65 | DEC A | Subtract one from A | ||||||||||
| DC66 | LD ($A034),A | Store A in $A034 in "Game variables" | ||||||||||
| DC69 | JP $DD07 | Jump on to DD07 - Carry on as the movement action does (DD07) | ||||||||||
|
This entry point is used by the routines at A2E4, CAAF, CB43, DC19, DC7B and DF40.
|
||||||||||||
| DC6C | LD A,($A036) | Read $A036 in "Game variables" into A | ||||||||||
| DC6F | CP $00 | Compare A with $00 | ||||||||||
| DC71 | RET Z | If A equals $00, return | ||||||||||
| DC72 | CP $01 | Compare A with $01 | ||||||||||
| DC74 | RET Z | If A equals $01, return | ||||||||||
| DC75 | CP $64 | Compare A with $64 | ||||||||||
| DC77 | RET Z | If A equals $64, return | ||||||||||
| DC78 | OR $01 | Make A non-zero, which clears the zero flag, and hand that back to the caller | ||||||||||
| DC7A | RET | Return to the caller | ||||||||||
| Prev: DC19 | Up: Map | Next: DC7B |