Routines
| Prev: E452 | Up: Map | Next: E497 |
E488: Action record: where is the person I follow? (RUN at $E45B, $E7B9)
|
Puts the direct object's room (+15) into plan register 9FD6. The follow loops of Watson, Lestrade and Straker use it to know where to walk next.
|
||||||||||||||
| E488 | DEFB $27,$00 | Action record header: flags $27; bit 5: test D078 first; byte 1 $00 | ||||||||||||
| E48A | LD IX,($A013) | Read $A013 in "Game variables" into IX - The direct object's room (+15)... | ||||||||||||
| E48E | LD A,(IX+$0F) | Read byte +15 of the record at IX into A | ||||||||||||
| E491 | LD ($9FD6),A | ...goes into plan register 9FD6 | ||||||||||||
| E494 | OR $01 | Make A non-zero, which clears the zero flag, and hand that back to the caller - Succeed | ||||||||||||
| E496 | RET | Return to the caller | ||||||||||||
| Prev: E452 | Up: Map | Next: E497 |