Main Program
Lines 60-110. These palette-changing commands enable objects on the screen to appear to move in front of, or behind, other objects when used with GCOL 3 (Exclusive OR) graphics colour command.
For example, I needed the white bullets to pass behind the green helicopters. White (colour seven) EORed with green (colour 2) produces magenta (colour 5) which does not work.
I therefore redefined colour 11 as white and colour 9 as green. Colour 11 EORed with colour 9 produces colour 2 (green). The effect will not work. Colour 11 (white) goes green when passing over the green helicopter and therefore appears to go "behind" it.