Prev: 9EC7 Up: Map Next: 9F08
9ED6: Print an object's name, with its article
Used by the routines at PRINT_NAME_AT, DESCRIPTION_OR_NAME and PRINT_RECORD_NAME.
The article (ARTICLE), then the adjectives in the order stored, then the noun. With NOUN_ONLY set, the noun alone.
Input
IY The name's six bytes: noun, then two adjectives
PRINT_NAME 9ED6 PUSH AF
9ED7 PUSH DE
9ED8 LD A,(NOUN_ONLY) The noun only?
9EDB CP $00
9EDD JR NZ,PRINT_NAME_0
9EDF LD D,(IY+$01) The article, for the noun
9EE2 LD E,(IY+$00)
9EE5 CALL ARTICLE
9EE8 LD E,(IY+$02) The adjectives
9EEB LD D,(IY+$03)
9EEE CALL PRINT_WORD_DE
9EF1 LD E,(IY+$04)
9EF4 LD D,(IY+$05)
9EF7 CALL PRINT_WORD_DE
PRINT_NAME_0 9EFA LD E,(IY+$00) The noun, if there is one
9EFD LD D,(IY+$01)
9F00 LD A,D
9F01 OR E
9F02 CALL NZ,PRINT_NOUN
9F05 POP DE
9F06 POP AF
9F07 RET
Prev: 9EC7 Up: Map Next: 9F08