Prev: 38989 Up: Map Next: 39027
39018: Choose Acceleration
Used by the routine at AccelerateRandomly.
Chooses an acceleration of 65504 or 32.
Input
F The zero flag selects the negative acceleration
Output
DE Acceleration
ChooseAcceleration 39018 LD D,255 Use 65504 as the acceleration.
39020 LD E,224
39022 RET Z Return if the zero flag is set.
39023 LD DE,32 Use 32 as the acceleration.
39026 RET Return.
Prev: 38989 Up: Map Next: 39027