![]() |
Routines |
| Prev: 53634 | Up: Map | Next: 53682 |
|
Used by the routine at ProcessObjectDisplayWithCheck.
Prints the location message for this character and records the object display.
|
||||
| PrintLocationText | 53639 | EX DE,HL | Read the current character. | |
| 53640 | LD A,(41014) | |||
| 53643 | PUSH AF | |||
| 53644 | LD A,(41014) | Read the current character and call GetObjectLocation to read that character's room. | ||
| 53647 | CALL GetObjectLocation | |||
| 53650 | EX AF,AF' | Jump to PrintLocationText_SaveResult if the location from GetObjectLocation is 255. | ||
| 53651 | INC A | |||
| 53652 | JR Z,PrintLocationText_SaveResult | |||
| 53654 | DEC A | Record the current character. | ||
| 53655 | LD (41014),A | |||
| 53658 | LD A,1 | |||
| 53660 | LD (41642),A | Record the object display flag. | ||
| PrintLocationText_SaveResult | 53663 | CALL PrintTextAndHandleControlCharacters | Call PrintTextAndHandleControlCharacters to print this message. | |
| 53666 | POP AF | |||
| 53667 | LD (41014),A | Record the current character. | ||
| 53670 | XOR A | |||
| 53671 | LD (41642),A | Store the flag at ObjectDisplayFlag and call 53702. | ||
| 53674 | CALL 53702 | |||
| 53677 | LD A,46 | Take a full stop and print it through Print_Character. | ||
| 53679 | JP Print_Character | |||
| Prev: 53634 | Up: Map | Next: 53682 |