![]() |
Routines |
| Prev: D5C9 | Up: Map | Next: D5EF |
|
Used by the routines at DescribeCurrentRoom and PrintObjectDescription.
Reads the attribute type and prints the matching direction text.
|
||||||||
| PrintObjectAttributeDescription | D5D3 | LD HL,$D5C9 | Take the object attribute description text tokens. | |||||
|
Extract the attribute type from the object data.
|
||||||||
| D5D6 | LD A,(IX+$04) | Read the attribute type. | ||||||
| D5D9 | AND %00000111 | Keep the direction of the attribute type. | ||||||
| D5DB | CP $05 | See whether the attribute type is 05. | ||||||
| D5DD | PUSH AF | Count down one, store the attribute type for the next step and move the pointer on by the length. | ||||||
| D5DE | DEC A | |||||||
| D5DF | LD E,A | |||||||
| D5E0 | LD D,$00 | |||||||
| D5E2 | ADD HL,DE | |||||||
| D5E3 | ADD HL,DE | |||||||
| D5E4 | CALL ExtractTokenFromText | Call ExtractTokenFromText to print the token. | ||||||
| D5E7 | POP AF | Restore the comparison from the stack. | ||||||
| D5E8 | RET NZ | Return unless the attribute type was 05. | ||||||
|
Print an additional text token for attribute type 06.
|
||||||||
| D5E9 | LD DE,$08DB | Jump back to PrintTextToken to print token 08DB. | ||||||
| D5EC | JP PrintTextToken | |||||||
| Prev: D5C9 | Up: Map | Next: D5EF |