![]() |
Routines |
| Prev: 7407 | Up: Map | Next: 7425 |
|
Message code 10. Prints the character's name, then IS, or ARE when the character is the player. Reached through the control-code table at PrintTable, dispatched by PrintMessage.
|
||||
| Message_PrintTheCharacterIsOrAre | 740C | LD A,($B6EA) | Read *CurrentCharacter. | |
| 740F | EX AF,AF' | Switch AF with its shadow. | ||
| 7410 | XOR A | Clear *B703. | ||
|
This entry point is used by the routine at Message_PrintTheObjectIsOrAre.
|
||||
| Message_PrintTheCharacterIsOrAre_0 | 7411 | LD ($B703),A | } | |
| 7414 | EX AF,AF' | Switch AF with its shadow. | ||
| 7415 | PUSH AF | Call Message_PrintTheFallbackToken to print the fallback token, or go back to naming the object. | ||
| 7416 | CALL Message_PrintTheFallbackToken | |||
| 7419 | POP AF | Restore the saved A from the stack, and return the token IS unless it is zero. | ||
| 741A | AND A | |||
| 741B | LD DE,$039B | |||
| 741E | RET NZ | |||
| 741F | LD DE,$0065 | Use the token ARE. | ||
| 7422 | OR $01 | Clear the zero flag so ARE is printed. | ||
| 7424 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 7407 | Up: Map | Next: 7425 |