![]() |
Routines |
| Prev: B6FD | Up: Map | Next: B77E |
|
Used by the routine at ProcessLocationDisplay.
Reads the high nibble of the dictionary byte at the token's index.
|
||||||||||||
| ReadDictionaryHighNibble | B772 | LD HL,$5DBF | Take the dictionary index. | |||||||||
| B775 | LD A,D | |||||||||||
| B776 | AND %00001111 | Keep the dictionary page (the low nibble of the token's high byte) as the high byte of the index. | ||||||||||
| B778 | LD D,A | Store the result in the high byte of the source. | ||||||||||
| B779 | ADD HL,DE | Add the token offset in DE to the dictionary base. | ||||||||||
| B77A | LD A,(HL) | Read the dictionary byte this index points at. | ||||||||||
| B77B | AND %11110000 | Keep the high nibble of the dictionary byte, which is the attribute value. | ||||||||||
| B77D | RET | Return. | ||||||||||
| Prev: B6FD | Up: Map | Next: B77E |