![]() |
Routines |
| Prev: 41134 | Up: Map | Next: 41160 |
|
Looks a direction id up at 41486 plus twice the id. The words run from NORTH to DOWN. Bit 7 of the id is ignored.
|
||||
| ExitsTheDirectionWord | 41146 | LD HL,41486 | Point at the token-address table at 41486. | |
|
This entry point is used by the routine at Message_NameFromThisRecord.
|
||||
| ExitsTheDirectionWord_0 | 41149 | LD E,A | Clear bit 7 of the token id. | |
| 41150 | RES 7,E | |||
| 41152 | LD D,0 | The direction-word offset's high byte is zero. | ||
| 41154 | ADD HL,DE | Add the token id. | ||
| 41155 | ADD HL,DE | Add the token id again. Each entry in 41486 is one word. | ||
| 41156 | LD E,(HL) | Read the low byte of 41486. | ||
| 41157 | INC HL | Step to the high byte of the direction token. | ||
| 41158 | LD D,(HL) | Read the high byte of the direction token at 41486 plus twice the direction id. | ||
| 41159 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 41134 | Up: Map | Next: 41160 |