Prev: B832 Up: Map Next: B870
B833: Launch or end the special beam
Used by the routine at fire.
The special key (the number row, or a letter with a joystick: read_control_method) launches the special beam if add-on 7 is fitted and the ship is still: its speeds last pass (ship_across_speed across and ship_down_speed up and down, in the ship's record) both within dead_band's dead band. Letting the key go while the beam is out starts it shrinking (end_special_beam).
It ran in the build's every-add-on session.
special_beam_key B833 LD A,(special_beam_on) the beam is out: watch the key
B836 AND A
B837 JR NZ,end_special_beam
B839 LD A,(controls_now) the key, and add-on 7
B83C BIT 5,A
B83E RET Z
B83F LD A,(addon_seven)
B842 AND A
B843 RET Z
B844 LD HL,(ship_across_speed) the ship still across and up and down
B847 LD A,H
B848 LD H,L
B849 LD L,A
B84A CALL dead_band
B84D LD A,H
B84E OR L
B84F RET NZ
B850 LD HL,(ship_down_speed)
B853 LD A,H
B854 LD H,L
B855 LD L,A
B856 CALL dead_band
B859 LD A,H
B85A OR L
B85B RET NZ
B85C LD A,(shot_alternator) launch it through fire's second entry, with shot_alternator bit 2 set for the one call
B85F XOR $04
B861 LD (shot_alternator),A
B864 CALL fire_1
B867 LD A,(shot_alternator)
B86A AND $01
B86C LD (shot_alternator),A
B86F RET
Prev: B832 Up: Map Next: B870