![]() |
Routines |
| Prev: 49148 | Up: Map | Next: 49178 |
|
Used by the routine at PlaySoundStep.
Reads a word from a table of words.
|
||||||||||||||
| GetTableEntry | 49168 | LD L,A | Put the index in HL. | |||||||||||
| 49169 | LD H,0 | |||||||||||||
| 49171 | ADD HL,HL | Multiply it by two. | ||||||||||||
| 49172 | ADD HL,BC | Add the address of the table. | ||||||||||||
| 49173 | LD A,(HL) | Fetch the low byte of the word. | ||||||||||||
| 49174 | INC HL | Point at the high byte. | ||||||||||||
| 49175 | LD H,(HL) | Fetch it into H. | ||||||||||||
| 49176 | LD L,A | Assemble the low byte of the word. | ||||||||||||
| 49177 | RET | Return. | ||||||||||||
|
View the equivalent code in;
|
||||||||||||||
| Prev: 49148 | Up: Map | Next: 49178 |