![]() |
Routines |
| Prev: 54914 | Up: Map | Next: 54940 |
|
Used by the routine at PlaySoundEffect.
Fetches a word from a table.
|
||||||||||||||
|
Fetch the word at twice the index.
|
||||||||||||||
| GetTableEntry | 54930 | LD L,A | Put the number in HL. | |||||||||||
| 54931 | LD H,0 | |||||||||||||
| 54933 | ADD HL,HL | Double it. | ||||||||||||
| 54934 | ADD HL,BC | Add the table. | ||||||||||||
| 54935 | LD A,(HL) | Fetch the low byte. | ||||||||||||
| 54936 | INC HL | Move on to the high byte. | ||||||||||||
| 54937 | LD H,(HL) | Fetch the high byte. | ||||||||||||
| 54938 | LD L,A | Set the low byte. | ||||||||||||
| 54939 | RET | Return. | ||||||||||||
|
View the equivalent code in;
|
||||||||||||||
| Prev: 54914 | Up: Map | Next: 54940 |