Routines
| Prev: DD61 | Up: Map | Next: DD9E |
DD84: Action record: remember what holds the direct object (RUN at $E476, $E7CF)
|
||||||||||||||
| DD84 | DEFB $6D,$00,$91,$DD | Action record header: flags $6D; bit 5: test D078 first; bit 6: pre-check at DD91; byte 1 $00 | ||||||||||||
| DD88 | LD A,(IX+$01) | Read byte +1 of the record at IX into A - The direct object's holder (+1) goes into plan register 9FD6 | ||||||||||||
| DD8B | LD ($9FD6),A | Store A in the plan's verb (9FD6) | ||||||||||||
| DD8E | OR $01 | Make A non-zero, which clears the zero flag, and hand that back to the caller - Succeed | ||||||||||||
| DD90 | RET | Return to the caller | ||||||||||||
| DD91 | LD IX,($A013) | Read $A013 in "Game variables" into IX - Pre-check: the direct object's holder... | ||||||||||||
| DD95 | LD A,(IX+$01) | Read byte +1 of the record at IX into A | ||||||||||||
| DD98 | AND A | Test A for zero (this leaves A as it was and clears carry) - ...must not be $FF (held by nothing): refuse (DC15) if it is | ||||||||||||
| DD99 | INC A | Add one to A | ||||||||||||
| DD9A | JP Z,$DC15 | If A has become zero, go back to the routine "Fail: A = 0, HL = 0, Z set" (DC15) | ||||||||||||
| DD9D | RET | Return to the caller | ||||||||||||
| Prev: DD61 | Up: Map | Next: DD9E |