![]() |
Routines |
| Prev: 38443 | Up: Map | Next: 38491 |
|
Describes this location: the preposition, "You are in", and the location text.
|
||||
| YouSeePreposition | 38448 | PUSH AF | Call LocateLocation to find this location's record. | |
| 38449 | CALL LocateLocation | |||
| 38452 | LD A,(IX+0) | Fetch the location attribute, keep only bits 1-3 which signify the location preposition ("IN", "ON", "AT", etc). | ||
| 38455 | AND %00001110 | |||
| 38457 | LD E,A | Create an offset for the preposition word look-up. | ||
| 38458 | LD D,0 | |||
| 38460 | LD HL,47744 | Add the offset to 47744. | ||
| 38463 | ADD HL,DE | |||
| 38464 | LD E,(HL) | Fetch the referenced text bytes which display the preposition word. | ||
| 38465 | INC HL | |||
| 38466 | LD D,(HL) | |||
| 38467 | LD HL,45053 | Write the text tokens to 45053 which updates the copy for "You are XXXX[0x16]". | ||
| 38470 | LD (HL),D | |||
| 38471 | INC HL | |||
| 38472 | LD (HL),E | |||
| 38473 | POP AF | Point at the message "You are in[0x16]". | ||
| 38474 | LD HL,45052 | |||
|
This entry point is used by the routines at YouSeeEntry and ActionCapture.
|
||||
| YouSee_Wrapper | 38477 | PUSH IX | Save IX, IY and BC and call YouSeeStart to print the location text. | |
| 38479 | PUSH IY | |||
| 38481 | PUSH BC | |||
| 38482 | CALL YouSeeStart | |||
| 38485 | POP BC | Restore BC, IY and IX from the stack. | ||
| 38486 | POP IY | |||
| 38488 | POP IX | |||
| 38490 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 38443 | Up: Map | Next: 38491 |