Prev: 54421 Up: Map Next: 54476
54439: Print Object List
Used by the routine at ProcessLocationTokenDisplay.
PrintObjectList 54439 PUSH IY Stash IY, AF and BC on the stack.
54441 PUSH AF
54442 PUSH BC
54443 LD A,255 Set the location ID to 255 (current character location).
54445 CALL CountObjectsInLocation Call CountObjectsInLocation.
Skip printing if no objects were found.
54448 JR Z,PrintObjectList_End Jump to PrintObjectList_End if no objects were found (count is 255).
54450 PUSH AF Stash the object count on the stack for later use.
Print the introductory text for the object list.
54451 LD HL,26852 Load the address of the introductory text token into HL.
54454 CALL PrintTextAndHandleControlCharacters Call PrintTextAndHandleControlCharacters to print the text token.
54457 POP BC Restore the object count from the stack.
54458 LD C,B Store the object count in C.
54459 LD A,255 Set the location ID to 255 (current character location) again.
54461 LD IY,(40983) Load *CurrentCharacterData into IY.
54465 LD B,(IY+15) Fetch the current character's location ID from the character data into B.
54468 CALL PrintObjectListWithFormatting Call PrintObjectListWithFormatting.
PrintObjectList_End 54471 POP BC Restore BC, AF and IY from the stack.
54472 POP AF
54473 POP IY
54475 RET Return.
Prev: 54421 Up: Map Next: 54476