Prev: 61030 Up: Map Next: 61092
61082: Choose Random Velocity
Used by the routine at Handle_Gargoyle.
Returns either 32 or 224 (that is, 32 or minus 32), which depends on bit 6 of the low byte of FRAMES.
Output
A 32 if bit 6 of FRAMES is set, otherwise 224
Choose_Random_Velocity 61082 LD A,(23672) Fetch the low byte of FRAMES.
61085 AND %01000000 Keep only bit 6.
61087 OR %00100000 Set bit 5.
61089 SUB 64 Subtract 64 which gives 32 if bit 6 was set and 224 if it was not.
61091 RET Return.
Prev: 61030 Up: Map Next: 61092