![]() |
Routines |
| Prev: 8301 | Up: Map | Next: 83CA |
|
Used by the routine at HandlerBatlet.
Looks up the distances for the current step of the flight pattern of a bat in BatFlightPattern. Bit 2 of the direction of the bat is returned in the Z flag (which is set when the axes are not swapped).
|
||||||||||||
| GetBatStep | 83BA | LD C,(IX+$09) | Fetch the step of the flight pattern. | |||||||||
| 83BD | SLA C | Double the step number, to get an offset of two bytes for each step. | ||||||||||
| 83BF | LD B,$00 | Clear the high byte of the offset. | ||||||||||
| 83C1 | LD HL,$83CA | Point HL at the bat flight pattern at BatFlightPattern. | ||||||||||
| 83C4 | ADD HL,BC | Find the entry for this step in the flight pattern. | ||||||||||
| 83C5 | BIT 2,(IX+$08) | Test bit 2 of the direction of the bat, and return. | ||||||||||
| 83C9 | RET | |||||||||||
| Prev: 8301 | Up: Map | Next: 83CA |