Skip to navigation

BBC Micro Elite

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   (3.6%)
Dashboard404  (4.3%)24  (5.9%)2    (0.7%)
Drawing circles252  (2.7%)9   (2.2%)0    (0.0%)
Drawing lines632  (6.7%)21  (5.2%)2    (0.7%)
Drawing pixels110  (1.2%)6   (1.5%)4    (1.3%)
Drawing planets400  (4.2%)16  (4.0%)3    (1.0%)
Drawing ships956 (10.1%)15  (3.7%)13   (4.2%)
Drawing suns174  (1.8%)6   (1.5%)0    (0.0%)
Equipment201  (2.1%)4   (1.0%)1    (0.3%)
Flight345  (3.7%)17  (4.2%)0    (0.0%)
Inventory85   (0.9%)3   (0.7%)0    (0.0%)
Keyboard264  (2.8%)13  (3.2%)1    (0.3%)
Loader314  (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.3%)
Maths (Arithmetic)748  (7.9%)49 (12.1%)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 load100  (1.1%)7   (1.7%)4    (1.3%)
Screen mode108  (1.1%)4   (1.0%)5    (1.6%)
Sound50   (0.5%)9   (2.2%)2    (0.7%)
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.0%)
Universe680  (7.2%)24  (5.9%)1    (0.3%)
Utility routines130  (1.4%)15  (3.7%)3    (1.0%)
Workspaces0    (0.0%)0   (0.0%)245 (80.1%)
Totals9424405306