![]() |
Routines |
| Prev: A19F | Up: Map | Next: A1B3 |
|
Used by the routines at RunObjectBehaviour, FetchObjectFrameTable, SelectEraseSprite, SelectDrawSprite, BuildCarriedItemGraphic, AddShipPart and MakeShotRow.
Fetches a word from a table.
|
||||||||||||||
| GetTableEntry | A1AA | LD B,$00 | Clear B. | |||||||||||
| A1AC | ADD HL,BC | Add the index twice to get the address of the entry. | ||||||||||||
| A1AD | ADD HL,BC | |||||||||||||
| A1AE | LD A,(HL) | Fetch the low byte. | ||||||||||||
| A1AF | INC HL | Move on to the high byte. | ||||||||||||
| A1B0 | LD H,(HL) | Fetch the high byte. | ||||||||||||
| A1B1 | LD L,A | Put the low byte in L. | ||||||||||||
| A1B2 | RET | Return. | ||||||||||||
| Prev: A19F | Up: Map | Next: A1B3 |