![]() |
Routines |
| Prev: EE66 | Up: Map | Next: EEA4 |
|
Used by the routine at Handle_Gargoyle.
Returns either 20 or E0 (that is, 20 or minus 20), which depends on bit 6 of the low byte of FRAMES.
|
||||||||
| Choose_Random_Velocity | EE9A | LD A,($5C78) | Fetch the low byte of FRAMES. | |||||
| EE9D | AND %01000000 | Keep only bit 6. | ||||||
| EE9F | OR %00100000 | Set bit 5. | ||||||
| EEA1 | SUB $40 | Subtract 40 which gives 20 if bit 6 was set and E0 if it was not. | ||||||
| EEA3 | RET | Return. | ||||||
| Prev: EE66 | Up: Map | Next: EEA4 |