Skip to navigation

Elite on the BBC Micro

Source code statistics [Electron version]

Here's a statistical breakdown of the source code for the Electron 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
Charts188  (2.2%)8   (2.1%)0    (0.0%)
Copy protection33   (0.4%)5   (1.3%)6    (2.5%)
Dashboard374  (4.3%)23  (6.1%)3    (1.3%)
Drawing circles249  (2.9%)9   (2.4%)0    (0.0%)
Drawing lines573  (6.6%)19  (5.1%)0    (0.0%)
Drawing pixels141  (1.6%)5   (1.3%)4    (1.7%)
Drawing planets173  (2.0%)7   (1.9%)3    (1.3%)
Drawing ships957 (11.0%)15  (4.0%)11   (4.6%)
Equipment201  (2.3%)4   (1.1%)1    (0.4%)
Flight305  (3.5%)16  (4.3%)0    (0.0%)
Inventory85   (1.0%)3   (0.8%)0    (0.0%)
Keyboard268  (3.1%)12  (3.2%)1    (0.4%)
Loader368  (4.2%)5   (1.3%)0    (0.0%)
Main loop573  (6.6%)22  (5.9%)0    (0.0%)
Market224  (2.6%)12  (3.2%)1    (0.4%)
Maths (Arithmetic)748  (8.6%)49 (13.1%)0    (0.0%)
Maths (Geometry)292  (3.4%)14  (3.7%)2    (0.8%)
Moving542  (6.3%)16  (4.3%)0    (0.0%)
Save and load99   (1.1%)7   (1.9%)3    (1.3%)
Screen mode7    (0.1%)1   (0.3%)1    (0.4%)
Sound58   (0.7%)9   (2.4%)2    (0.8%)
Stardust375  (4.3%)7   (1.9%)0    (0.0%)
Start and end181  (2.1%)9   (2.4%)0    (0.0%)
Status105  (1.2%)3   (0.8%)0    (0.0%)
Tactics313  (3.6%)13  (3.5%)0    (0.0%)
Text433  (5.0%)45 (12.0%)4    (1.7%)
Universe661  (7.6%)23  (6.1%)1    (0.4%)
Utility routines142  (1.6%)14  (3.7%)2    (0.8%)
Workspaces0    (0.0%)0   (0.0%)194 (81.2%)
Totals8668375239