![]() |
Routines |
| Prev: 53468 | Up: Map | Next: 53506 |
|
Used by the routines at ProcessLocationTokenDisplay and ProcessObjectDisplayWithCheck.
Looks the room up and, unless an exit line is already being printed, chooses the exit text from the room's direction bits.
|
||||||||
| ProcessLocationToken | 53469 | PUSH AF | Keep the room, then call FetchLocationDataPointer to look up this room. | |||||
| 53470 | CALL FetchLocationDataPointer | |||||||
| 53473 | LD A,(53468) | Read the location-token flag at LocationTokenProcessingFlag. | ||||||
| 53476 | AND A | |||||||
| 53477 | LD HL,26852 | Take the exit text and go to ProcessLocationToken_Next if location token processing is on. | ||||||
| 53480 | JR NZ,ProcessLocationToken_Next | |||||||
| 53482 | LD A,(IX+0) | Read the record's flag byte. | ||||||
| 53485 | AND %00001110 | Take bits 1-3 of the flag byte as an even offset into the tokens at Table_Tokens. | ||||||
| 53487 | LD E,A | Use the tokens at Table_Tokens. | ||||||
| 53488 | LD D,0 | |||||||
| 53490 | LD HL,53338 | |||||||
| 53493 | ADD HL,DE | |||||||
| 53494 | LD E,(HL) | |||||||
| 53495 | INC HL | Call WriteTokenToBuffer to write token to buffer. | ||||||
| 53496 | LD D,(HL) | |||||||
| 53497 | EX DE,HL | |||||||
| 53498 | CALL WriteTokenToBuffer | |||||||
| 53501 | LD HL,26845 | Use the message (26845). | ||||||
| ProcessLocationToken_Next | 53504 | POP AF | Restore AF from the stack. | |||||
| 53505 | RET | Return. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: 53468 | Up: Map | Next: 53506 |