![]() |
Routines |
| Prev: 54652 | Up: Map | Next: 54729 |
|
Used by the routine at PrintFormattedObjectList.
|
||||||||||
| PrintObjectDescription | 54672 | PUSH IX | Stash the object pointer, object count/ description type and object ID on the stack. | |||||||
| 54674 | PUSH BC | |||||||||
| 54675 | PUSH AF | |||||||||
| 54676 | CALL FetchObjectDataPointer | Call FetchObjectDataPointer to load the object data pointer into IX. | ||||||||
| 54679 | BIT 6,(IX+5) | Jump to PrintObjectDescription_Standard if the object doesn't have a special description (bit 6 of *IX+5 is not set). | ||||||||
| 54683 | JR Z,PrintObjectDescription_Standard | |||||||||
|
Print the special description text for this object.
|
||||||||||
| PrintObjectDescription_Special | 54685 | POP AF | Restore the object ID from the stack. | |||||||
| 54686 | PUSH AF | Stash AF and AF (preserve flags) on the stack. | ||||||||
| 54687 | PUSH AF | |||||||||
| 54688 | LD HL,26801 | HL=26801 (load the address of the special description text token into HL). | ||||||||
| 54691 | JR PrintObjectDescription_PrintText | Jump to PrintObjectDescription_PrintText to print the text. | ||||||||
|
Determine which standard description text to use based on the description type.
|
||||||||||
| PrintObjectDescription_Standard | 54693 | LD HL,1157 | HL=1157 (load address for description type 0 text into HL). | |||||||
| 54696 | DEC C | Decrease C (the description type) by one (check if description type is 1). | ||||||||
| 54697 | JR Z,PrintObjectDescription_PrintAttributes | Jump to PrintObjectDescription_PrintAttributes if description type is 0 (C equals A after decrement). | ||||||||
| 54699 | LD HL,122 | HL=0122 (load address for description type 1 text into HL). | ||||||||
| PrintObjectDescription_PrintAttributes | 54702 | PUSH HL | Stash the description text address on the stack. | |||||||
| 54703 | CALL PrintObjectAttributeDescription | Call PrintObjectAttributeDescription to print the object attribute description. | ||||||||
| 54706 | LD A,1 | Enable *ObjectDisplayFlag (write 1 to it). | ||||||||
| 54708 | LD (41642),A | |||||||||
| 54711 | CALL ProcessObjectEntryAlternate_3 | Call ProcessObjectEntryAlternate_3 to print additional object information. | ||||||||
| 54714 | XOR A | Disable *ObjectDisplayFlag (write 0 to it). | ||||||||
| 54715 | LD (41642),A | |||||||||
| 54718 | LD HL,26841 | HL=26841 (load the address of the closing text token into HL). | ||||||||
| PrintObjectDescription_PrintText | 54721 | CALL PrintTextAndHandleControlCharacters | Call PrintTextAndHandleControlCharacters to print the text token. | |||||||
| 54724 | POP AF | Restore the object ID, object count/ description type and the object pointer from the stack. | ||||||||
| 54725 | POP BC | |||||||||
| 54726 | POP IX | |||||||||
| 54728 | RET | Return. | ||||||||
| Prev: 54652 | Up: Map | Next: 54729 |