![]() |
Routines |
| Prev: D182 | Up: Map | Next: D1B2 |
|
Used by the routine at ProcessObjectDisplayWithCheck.
Prints the location message for this character and records the object display.
|
||||
| PrintLocationText | D187 | EX DE,HL | Read the current character. | |
| D188 | LD A,($A036) | |||
| D18B | PUSH AF | |||
| D18C | LD A,($A036) | Read the current character and call GetObjectLocation to read that character's room. | ||
| D18F | CALL GetObjectLocation | |||
| D192 | EX AF,AF' | Jump to PrintLocationText_SaveResult if the location from GetObjectLocation is FF. | ||
| D193 | INC A | |||
| D194 | JR Z,PrintLocationText_SaveResult | |||
| D196 | DEC A | Record the current character. | ||
| D197 | LD ($A036),A | |||
| D19A | LD A,$01 | |||
| D19C | LD ($A2AA),A | Record the object display flag. | ||
| PrintLocationText_SaveResult | D19F | CALL PrintTextAndHandleControlCharacters | Call PrintTextAndHandleControlCharacters to print this message. | |
| D1A2 | POP AF | |||
| D1A3 | LD ($A036),A | Record the current character. | ||
| D1A6 | XOR A | |||
| D1A7 | LD ($A2AA),A | Store the flag at ObjectDisplayFlag and call D1C6. | ||
| D1AA | CALL $D1C6 | |||
| D1AD | LD A,$2E | Take a full stop and print it through Print_Character. | ||
| D1AF | JP Print_Character | |||
| Prev: D182 | Up: Map | Next: D1B2 |