![]() |
Routines |
| Prev: 54653 | Up: Map | Next: 54729 |
|
Used by the routine at PrintFormattedObjectList.
Looks the object up and prints either its special text or the ordinary description.
|
||||||||||
| PrintObjectDescription | 54672 | PUSH IX | Call FetchObjectDataPointer to look up that object. | |||||||
| 54674 | PUSH BC | |||||||||
| 54675 | PUSH AF | |||||||||
| 54676 | CALL FetchObjectDataPointer | |||||||||
| 54679 | BIT 6,(IX+5) | Jump to PrintObjectDescription_Standard if the special-description flag is clear. | ||||||||
| 54683 | JR Z,PrintObjectDescription_Standard | |||||||||
|
Print the special description text for this object.
|
||||||||||
| PrintObjectDescription_Special | 54685 | POP AF | Restore the saved flags from the stack, then save two copies of them back. | |||||||
| 54686 | PUSH AF | |||||||||
| 54687 | PUSH AF | |||||||||
| 54688 | LD HL,26801 | Print the text at 26801 from PrintObjectDescription_PrintText. | ||||||||
| 54691 | JR PrintObjectDescription_PrintText | |||||||||
|
Determine which standard description text to use based on the description type.
Determine which standard description text to use based on the description type.
|
||||||||||
| PrintObjectDescription_Standard | 54693 | LD HL,1157 | Take 1157 and jump ahead to PrintObjectDescription_PrintAttributes if the count has run out. | |||||||
| 54696 | DEC C | |||||||||
| 54697 | JR Z,PrintObjectDescription_PrintAttributes | |||||||||
| 54699 | LD HL,122 | Take the object token at 0122. | ||||||||
| PrintObjectDescription_PrintAttributes | 54702 | PUSH HL | Call PrintObjectAttributeDescription to describe the object's attribute, saving pointer. | |||||||
| 54703 | CALL PrintObjectAttributeDescription | |||||||||
| 54706 | LD A,1 | Enable *ObjectDisplayFlag (write 1 to it). | ||||||||
| 54708 | LD (41642),A | |||||||||
| 54711 | CALL TakeTheFoundObject | Call TakeTheFoundObject to read this object's description flag. | ||||||||
| 54714 | XOR A | Disable *ObjectDisplayFlag (write 0 to it). | ||||||||
| 54715 | LD (41642),A | |||||||||
| 54718 | LD HL,26841 | Take the cannot see message. | ||||||||
| PrintObjectDescription_PrintText | 54721 | CALL PrintTextAndHandleControlCharacters | Call PrintTextAndHandleControlCharacters to print the message. | |||||||
| 54724 | POP AF | Restore the saved result, the saved count and the saved character record from the stack. | ||||||||
| 54725 | POP BC | |||||||||
| 54726 | POP IX | |||||||||
| 54728 | RET | Return. | ||||||||
| Prev: 54653 | Up: Map | Next: 54729 |