Prev: 56629 Up: Map Next: 57292
57179: Print Object Description Text
Used by the routines at 56629, 57402 and LookupAndPrintDisplayText.
Prints the description text for an object specified by the room display parameter. If the object has custom description text, that is printed; otherwise a default description is used. Additional object information is then printed followed by a period.
PrintObjectDescriptionText 57179 LD A,(41012) A=*RoomDisplayParameter.
57182 CALL FetchObjectDataPointer Call FetchObjectDataPointer.
57185 SET 6,(IX+6) Set bit 6 of *IX+6.
57189 LD L,(IX+13) Load the object's description text pointer from offsets 13/14.
57192 LD H,(IX+14)
57195 LD A,H Jump to PrintTextAndHandleControlCharacters if the object has custom description text.
57196 OR L
57197 JP NZ,PrintTextAndHandleControlCharacters
57200 LD HL,26849 HL=26849.
57203 CALL PrintTextAndHandleControlCharacters Call PrintTextAndHandleControlCharacters.
57206 CALL ProcessObjectEntryAlternate_3 Call ProcessObjectEntryAlternate_3.
57209 LD A,46 Load a period character (ASCII 46) into A.
57211 JP Print_Character Jump to Print_Character.
57214 ADC A,B
57215 NOP
57216 RLCA
57217 POP BC
57218 CALL C,65533
57221 RLCA
57222 ADC A,E
57223 RST 24
57224 DEFB 253
57225 RST 56
57226 DEC BC
57227 EX AF,AF'
57228 NOP
57229 LD A,(40097)
57232 AND A
57233 JR Z,57344
57235 LD A,255
57237 LD (40097),A
57240 LD IX,(40979)
57244 LD HL,2005
57247 LD (IX+9),L
57250 LD (IX+10),H
57253 JR 57344
57255 RET Z
57256 NOP
57257 INC E
57258 RET PO
57259 RLCA
57260 OR (HL)
57261 RST 24
57262 DEFB 253
57263 RST 56
57264 RLCA
57265 SBC A,L
57266 SBC A,253
57268 RST 56
57269 DEC BC
57270 RLCA
57271 RET P
57272 LD A,(41012)
57275 CP 89
57277 JP NZ,57344
57280 LD A,(40929)
57283 CP 0
57285 JP NZ,57344
57288 JR 57292
57290 NOP
57291 NOP
Prev: 56629 Up: Map Next: 57292