![]() |
Routines |
| Prev: 40526 | Up: Map | Next: 40540 |
|
Used by the routine at ChooseFlameDirection.
Reads a velocity from the table at FlameVelocities.
|
||||||||||||
| FetchFlameVelocity | 40531 | LD BC,40540 | Point BC at the table of flame velocities at FlameVelocities. | |||||||||
| 40534 | LD L,A | Use the index as the offset into the table. | ||||||||||
| 40535 | LD H,0 | |||||||||||
| 40537 | ADD HL,BC | Add the table address to get the address of the velocity. | ||||||||||
| 40538 | LD A,(HL) | Fetch the velocity from the table. | ||||||||||
| 40539 | RET | Return. | ||||||||||
|
View the equivalent code in;
|
||||||||||||
| Prev: 40526 | Up: Map | Next: 40540 |