![]() |
Routines |
| Prev: 46845 | Up: Map | Next: 46974 |
|
Used by the routine at ProcessLocationDisplay.
Reads the high nibble of the dictionary byte at the token's index.
|
||||||||||||
| ReadDictionaryHighNibble | 46962 | LD HL,23999 | Take the dictionary index. | |||||||||
| 46965 | LD A,D | |||||||||||
| 46966 | AND %00001111 | Keep the dictionary page (the low nibble of the token's high byte) as the high byte of the index. | ||||||||||
| 46968 | LD D,A | Store the result in the high byte of the source. | ||||||||||
| 46969 | ADD HL,DE | Add the token offset in DE to the dictionary base. | ||||||||||
| 46970 | LD A,(HL) | Read the dictionary byte this index points at. | ||||||||||
| 46971 | AND %11110000 | Keep the high nibble of the dictionary byte, which is the attribute value. | ||||||||||
| 46973 | RET | Return. | ||||||||||
| Prev: 46845 | Up: Map | Next: 46974 |