Structure of program
Keeping the above said in mind, a vectrex program most of the time has following basic structure:
-init_code-
main_loop:
-sound update-
-recalibration-
-sound output-
-input handling-
-some other stuff-
-screen update-
repeat main_loop until exit