Skip to navigation

BBC Micro Elite

Source code statistics

Here's a statistical breakdown of the source code for the cassette version of Elite. Click on the table headers to sort by that statistic. Some notes:

  • The instruction count does not include EQUB, EQUW, EQUD, EQUS or SKIP operatives used in declaring variables, but it does include them when they are buried in code (so EQUB &2C "BIT skip" instructions are counted)
  • Instructions inside macros aren't counted
  • Each part of a multi-part subroutine counts as an individual subroutine
CategoryInstructionsSubroutinesVariables
Charts199  (2.1%)8   (2.0%)0    (0.0%)
Copy protection105  (1.1%)7   (1.7%)11   (3.8%)
Dashboard404  (4.3%)24  (6.0%)2    (0.7%)
Drawing circles252  (2.7%)9   (2.2%)0    (0.0%)
Drawing lines631  (6.7%)21  (5.2%)2    (0.7%)
Drawing pixels110  (1.2%)6   (1.5%)4    (1.4%)
Drawing planets400  (4.2%)15  (3.7%)3    (1.0%)
Drawing ships956 (10.1%)14  (3.5%)13   (4.5%)
Drawing suns174  (1.8%)6   (1.5%)0    (0.0%)
Equipment201  (2.1%)4   (1.0%)1    (0.3%)
Flight345  (3.7%)16  (4.0%)0    (0.0%)
Inventory85   (0.9%)3   (0.7%)0    (0.0%)
Keyboard264  (2.8%)13  (3.2%)1    (0.3%)
Loader317  (3.4%)6   (1.5%)0    (0.0%)
Main loop604  (6.4%)23  (5.7%)0    (0.0%)
Market224  (2.4%)12  (3.0%)1    (0.3%)
Maths (Arithmetic)748  (7.9%)49 (12.2%)0    (0.0%)
Maths (Geometry)292  (3.1%)14  (3.5%)2    (0.7%)
Moving544  (5.8%)16  (4.0%)0    (0.0%)
Save and load104  (1.1%)7   (1.7%)4    (1.4%)
Screen mode108  (1.1%)4   (1.0%)5    (1.7%)
Sound50   (0.5%)9   (2.2%)2    (0.7%)
Stardust375  (4.0%)7   (1.7%)0    (0.0%)
Start and end193  (2.0%)8   (2.0%)0    (0.0%)
Status106  (1.1%)3   (0.7%)0    (0.0%)
Tactics329  (3.5%)13  (3.2%)0    (0.0%)
Text499  (5.3%)46 (11.4%)5    (1.7%)
Universe663  (7.0%)23  (5.7%)1    (0.3%)
Utility routines147  (1.6%)16  (4.0%)3    (1.0%)
Workspaces0    (0.0%)0   (0.0%)226 (79.0%)
Totals9429402286