Skip to navigation

Elite on the BBC Micro

Source code statistics [Cassette version]

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 protection106  (1.1%)7   (1.7%)11   (4.3%)
Dashboard404  (4.3%)24  (5.9%)2    (0.8%)
Drawing circles252  (2.7%)9   (2.2%)0    (0.0%)
Drawing lines632  (6.7%)21  (5.2%)2    (0.8%)
Drawing pixels110  (1.2%)6   (1.5%)4    (1.6%)
Drawing planets400  (4.2%)16  (4.0%)3    (1.2%)
Drawing ships956 (10.1%)15  (3.7%)13   (5.1%)
Drawing suns174  (1.8%)6   (1.5%)0    (0.0%)
Equipment201  (2.1%)4   (1.0%)1    (0.4%)
Flight355  (3.8%)17  (4.2%)0    (0.0%)
Inventory85   (0.9%)3   (0.7%)0    (0.0%)
Keyboard264  (2.8%)13  (3.2%)1    (0.4%)
Loader315  (3.3%)6   (1.5%)0    (0.0%)
Main loop604  (6.4%)22  (5.4%)0    (0.0%)
Market224  (2.4%)12  (3.0%)1    (0.4%)
Maths (Arithmetic)748  (7.9%)49 (12.1%)0    (0.0%)
Maths (Geometry)292  (3.1%)14  (3.5%)2    (0.8%)
Moving544  (5.8%)16  (4.0%)0    (0.0%)
Save and load100  (1.1%)7   (1.7%)4    (1.6%)
Screen mode108  (1.1%)4   (1.0%)5    (1.9%)
Sound50   (0.5%)9   (2.2%)2    (0.8%)
Stardust375  (4.0%)7   (1.7%)0    (0.0%)
Start and end193  (2.0%)9   (2.2%)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%)6    (2.3%)
Universe681  (7.2%)24  (5.9%)1    (0.4%)
Utility routines132  (1.4%)15  (3.7%)3    (1.2%)
Workspaces0    (0.0%)0   (0.0%)196 (76.3%)
Totals9438405257