Skip to navigation

Elite on the BBC Micro

Source code statistics [Master version]

Here's a statistical breakdown of the source code for the BBC Master 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
Charts284   (2.3%)9   (1.8%)0    (0.0%)
Dashboard471   (3.8%)24  (4.9%)2    (0.6%)
Drawing circles263   (2.1%)9   (1.8%)0    (0.0%)
Drawing lines1349 (11.0%)27  (5.5%)4    (1.2%)
Drawing pixels120   (1.0%)4   (0.8%)9    (2.7%)
Drawing planets394   (3.2%)16  (3.3%)4    (1.2%)
Drawing ships968   (7.9%)15  (3.1%)38  (11.3%)
Drawing suns176   (1.4%)6   (1.2%)0    (0.0%)
Equipment229   (1.9%)5   (1.0%)1    (0.3%)
Flight518   (4.2%)19  (3.9%)0    (0.0%)
Inventory111   (0.9%)3   (0.6%)0    (0.0%)
Keyboard538   (4.4%)24  (4.9%)4    (1.2%)
Loader147   (1.2%)4   (0.8%)4    (1.2%)
Main loop690   (5.6%)22  (4.5%)0    (0.0%)
Market259   (2.1%)14  (2.9%)1    (0.3%)
Maths (Arithmetic)924   (7.5%)52 (10.6%)3    (0.9%)
Maths (Geometry)316   (2.6%)16  (3.3%)2    (0.6%)
Missions85    (0.7%)8   (1.6%)0    (0.0%)
Moving545   (4.4%)16  (3.3%)0    (0.0%)
Save and load286   (2.3%)14  (2.9%)13   (3.9%)
Screen mode66    (0.5%)4   (0.8%)6    (1.8%)
Ship hanger219   (1.8%)5   (1.0%)2    (0.6%)
Sound142   (1.2%)13  (2.7%)7    (2.1%)
Stardust384   (3.1%)7   (1.4%)0    (0.0%)
Start and end228   (1.9%)8   (1.6%)0    (0.0%)
Status116   (0.9%)3   (0.6%)2    (0.6%)
Tactics430   (3.5%)13  (2.7%)0    (0.0%)
Text973   (7.9%)78 (16.0%)19   (5.7%)
Universe759   (6.2%)26  (5.3%)2    (0.6%)
Utility routines274   (2.2%)25  (5.1%)1    (0.3%)
Workspaces0     (0.0%)0   (0.0%)211 (63.0%)
Totals12264489335