Skip to navigation

Elite on the BBC Micro

Source code statistics [Disc version]

Here's a statistical breakdown of the source code for the disc 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
Charts427   (2.6%)16   (2.2%)0    (0.0%)
Copy protection357   (2.2%)10   (1.3%)5    (0.7%)
Dashboard679   (4.2%)41   (5.5%)3    (0.4%)
Drawing circles500   (3.1%)18   (2.4%)0    (0.0%)
Drawing lines1227  (7.5%)41   (5.5%)4    (0.6%)
Drawing pixels199   (1.2%)11   (1.5%)7    (1.0%)
Drawing planets415   (2.5%)18   (2.4%)4    (0.6%)
Drawing ships1751 (10.7%)29   (3.9%)222 (31.8%)
Drawing suns346   (2.1%)12   (1.6%)0    (0.0%)
Equipment242   (1.5%)5    (0.7%)1    (0.1%)
Flight625   (3.8%)28   (3.8%)0    (0.0%)
Inventory131   (0.8%)5    (0.7%)0    (0.0%)
Keyboard563   (3.5%)28   (3.8%)1    (0.1%)
Loader608   (3.7%)24   (3.2%)9    (1.3%)
Main loop704   (4.3%)25   (3.4%)0    (0.0%)
Market363   (2.2%)23   (3.1%)2    (0.3%)
Maths (Arithmetic)1311  (8.0%)92  (12.4%)0    (0.0%)
Maths (Geometry)530   (3.2%)23   (3.1%)2    (0.3%)
Missions81    (0.5%)8    (1.1%)0    (0.0%)
Moving850   (5.2%)25   (3.4%)0    (0.0%)
Save and load209   (1.3%)16   (2.2%)7    (1.0%)
Screen mode67    (0.4%)5    (0.7%)4    (0.6%)
Ship hanger195   (1.2%)6    (0.8%)1    (0.1%)
Sound97    (0.6%)18   (2.4%)3    (0.4%)
Stardust389   (2.4%)8    (1.1%)0    (0.0%)
Start and end253   (1.6%)12   (1.6%)0    (0.0%)
Status211   (1.3%)5    (0.7%)0    (0.0%)
Tactics387   (2.4%)13   (1.7%)0    (0.0%)
Text1204  (7.4%)111 (14.9%)19   (2.7%)
Universe1134  (6.9%)38   (5.1%)2    (0.3%)
Utility routines262   (1.6%)29   (3.9%)3    (0.4%)
Workspaces0     (0.0%)0    (0.0%)400 (57.2%)
Totals16317743699