1As a matter of fact, almost all the code for running games–or the Tone Generator in out case–is executed during a segment called vertical blank.