![]() |
Routines |
| Prev: 54767 | Up: Map | Next: 54791 |
|
Used by the routines at PrintLocationExits and PrintLocationExitsWithFormatting.
This routine converts a direction value into the address of its corresponding token string.
|
||||||||||||
| GetDirectionToken | 54779 | LD HL,53348 | Use the direction tokens at Table_DirectionTokens. | |||||||||
| 54782 | DEC HL | Step HL back two bytes. | ||||||||||
| 54783 | DEC HL | |||||||||||
| 54784 | LD E,A | Clear bit 7 of the direction. | ||||||||||
| 54785 | RES 7,E | |||||||||||
| 54787 | LD D,0 | Clear the high byte in D. | ||||||||||
| 54789 | ADD HL,DE | Add 2 times the offset to the base table address. | ||||||||||
| 54790 | ADD HL,DE | |||||||||||
|
View the equivalent code in;
|
||||||||||||
| Prev: 54767 | Up: Map | Next: 54791 |