![]() |
Routines |
| Prev: 41375 | Up: Map | Next: 41395 |
|
Used by the routines at RunObjectBehaviour, FetchObjectFrameTable, SelectEraseSprite, SelectDrawSprite, BuildCarriedItemGraphic, AddShipPart and MakeShotRow.
Fetches a word from a table.
|
||||||||||||||
| GetTableEntry | 41386 | LD B,0 | Clear B. | |||||||||||
| 41388 | ADD HL,BC | Add the index twice to get the address of the entry. | ||||||||||||
| 41389 | ADD HL,BC | |||||||||||||
| 41390 | LD A,(HL) | Fetch the low byte. | ||||||||||||
| 41391 | INC HL | Move on to the high byte. | ||||||||||||
| 41392 | LD H,(HL) | Fetch the high byte. | ||||||||||||
| 41393 | LD L,A | Put the low byte in L. | ||||||||||||
| 41394 | RET | Return. | ||||||||||||
| Prev: 41375 | Up: Map | Next: 41395 |