![]() |
Routines |
| Prev: 962B | Up: Map | Next: 965B |
|
Describes this location: the preposition, "You are in", and the location text.
|
||||
| YouSeePreposition | 9630 | PUSH AF | Call LocateLocation to find this location's record. | |
| 9631 | CALL LocateLocation | |||
| 9634 | LD A,(IX+$00) | Fetch the location attribute, keep only bits 1-3 which signify the location preposition ("IN", "ON", "AT", etc). | ||
| 9637 | AND %00001110 | |||
| 9639 | LD E,A | Create an offset for the preposition word look-up. | ||
| 963A | LD D,$00 | |||
| 963C | LD HL,$BA80 | Add the offset to BA80. | ||
| 963F | ADD HL,DE | |||
| 9640 | LD E,(HL) | Fetch the referenced text bytes which display the preposition word. | ||
| 9641 | INC HL | |||
| 9642 | LD D,(HL) | |||
| 9643 | LD HL,$AFFD | Write the text tokens to AFFD which updates the copy for "You are XXXX[0x16]". | ||
| 9646 | LD (HL),D | |||
| 9647 | INC HL | |||
| 9648 | LD (HL),E | |||
| 9649 | POP AF | Point at the message "You are in[0x16]". | ||
| 964A | LD HL,$AFFC | |||
|
This entry point is used by the routines at YouSeeEntry and ActionCapture.
|
||||
| YouSee_Wrapper | 964D | PUSH IX | Save IX, IY and BC and call YouSeeStart to print the location text. | |
| 964F | PUSH IY | |||
| 9651 | PUSH BC | |||
| 9652 | CALL YouSeeStart | |||
| 9655 | POP BC | Restore BC, IY and IX from the stack. | ||
| 9656 | POP IY | |||
| 9658 | POP IX | |||
| 965A | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 962B | Up: Map | Next: 965B |