![]() |
Routines |
| Prev: B6F2 | Up: Map | Next: B730 |
|
Used by the routine at ship_pass.
Called every pass from ship_pass. A missile (+16 bit 7) is updated by update_missile while its +0 is 0 (its type); any other record in use (+B not 0) is a beam, updated by update_shot.
|
||||
| update_shots | B706 | LD IX,shot_records | the four shot records | |
| B70A | LD B,$04 | |||
| update_shots_0 | B70C | PUSH BC | a missile: its own routine | |
| B70D | PUSH IX | |||
| B70F | BIT 7,(IX+$16) | |||
| B713 | JR Z,update_shots_1 | |||
| B715 | LD A,(IX+$00) | |||
| B718 | AND A | |||
| B719 | CALL Z,update_missile | |||
| B71C | JR update_shots_2 | |||
| update_shots_1 | B71E | LD A,(IX+$0B) | a beam in flight: update_shot | |
| B721 | AND A | |||
| B722 | CALL NZ,update_shot | |||
| update_shots_2 | B725 | POP IX | the next | |
| B727 | LD BC,$0018 | |||
| B72A | ADD IX,BC | |||
| B72C | POP BC | |||
| B72D | DJNZ update_shots_0 | |||
| B72F | RET | |||
| Prev: B6F2 | Up: Map | Next: B730 |