This is an old revision of the document!


System Routines

The Bally Arcade's onboard subroutines provide dozens of useful services for programming Bally software, from drawing rectangles, to incrementing game timers, to capturing control handle input. These system routines form the central framework of all Bally Arcade software.

System routines are divided into five categories based upon their general functions:

  • The Screen Handler provides routines for creating screen images, including facilities for initialization, pattern, and character display, coordinate conversion, and object vectoring.
  • The Interrupt Scheduler handles systems dependent upon timing, i.e., counters, timers, music, and interrupts.
  • The Math routines manipulate BCD and decimal numbers and store/transfer data.

NOTE: The Nutting Manual lists slightly different system subsections on its opening page, within the system routine descriptions, and in the operating system source listing. The Better Bally Book favors the subsections organized in the source listing (pp. 6–7) both due to their logical organization and due to their complete listing of otherwise undocumented system routines.