![]() |
Routines |
| Prev: 54729 | Up: Map | Next: 54767 |
|
Used by the routines at DescribeCurrentRoom and PrintObjectDescription.
Reads the attribute type and prints the matching direction text.
|
||||||||
| PrintObjectAttributeDescription | 54739 | LD HL,54729 | Take the object attribute description text tokens. | |||||
|
Extract the attribute type from the object data.
|
||||||||
| 54742 | LD A,(IX+4) | Read the attribute type. | ||||||
| 54745 | AND %00000111 | Keep the direction of the attribute type. | ||||||
| 54747 | CP 5 | See whether the attribute type is 5. | ||||||
| 54749 | PUSH AF | Count down one, store the attribute type for the next step and move the pointer on by the length. | ||||||
| 54750 | DEC A | |||||||
| 54751 | LD E,A | |||||||
| 54752 | LD D,0 | |||||||
| 54754 | ADD HL,DE | |||||||
| 54755 | ADD HL,DE | |||||||
| 54756 | CALL ExtractTokenFromText | Call ExtractTokenFromText to print the token. | ||||||
| 54759 | POP AF | Restore the comparison from the stack. | ||||||
| 54760 | RET NZ | Return unless the attribute type was 5. | ||||||
|
Print an additional text token for attribute type 6.
|
||||||||
| 54761 | LD DE,2267 | Jump back to PrintTextToken to print token 2267. | ||||||
| 54764 | JP PrintTextToken | |||||||
| Prev: 54729 | Up: Map | Next: 54767 |