![]() |
Routines |
| Prev: B3F2 | Up: Map | Next: B414 |
|
Used by the routine at update_shot.
From the second byte of random_a: 0 half the time, -1 and +1 a quarter each. Used to shake a laser's line by one as it leaves the ship.
|
||||||||
| random_jitter | B403 | LD A,(random_b) | 0 or 1: 0 | |||||
| B406 | AND $03 | |||||||
| B408 | LD B,$00 | |||||||
| B40A | CP $02 | |||||||
| B40C | RET C | |||||||
| B40D | DEC B | 3: -1 | ||||||
| B40E | CP $03 | |||||||
| B410 | RET Z | |||||||
| B411 | INC B | 2: +1 | ||||||
| B412 | INC B | |||||||
| B413 | RET | |||||||
| Prev: B3F2 | Up: Map | Next: B414 |