The idea is to run the whole game (or your FIRE) in a loop.
There are few aproaches so here is just an idea:
begin
initialize;
set_mode;
get_some_memory;
load_sprites;
repeat
display_background;
put_all_sprites;
if fire_button_pressed then FIRE;
if (fast_PC=true and disable_sound=false) then play_some_noise;
vsync;
flip_pages;
until i_gotta_quit=true;
set_text_mode;
return_memory;
end.
You will find plenty examples on the net or this board.
Email me if you need some code...
Iby