Skip to navigation

Elite on the BBC Micro

Source code statistics [Elite-A]

Here's a statistical breakdown of the source code for Elite-A. 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
Buying ships237   (0.8%)7    (0.5%)8    (0.5%)
Charts880   (2.8%)33   (2.2%)0    (0.0%)
Copy protection6     (0.0%)1    (0.1%)1    (0.1%)
Dashboard1174  (3.7%)77   (5.2%)9    (0.6%)
Drawing circles921   (2.9%)33   (2.2%)0    (0.0%)
Drawing lines2474  (7.9%)84   (5.6%)8    (0.5%)
Drawing pixels299   (1.0%)21   (1.4%)13   (0.9%)
Drawing planets712   (2.3%)35   (2.3%)4    (0.3%)
Drawing ships3493 (11.2%)58   (3.9%)359 (24.5%)
Drawing suns661   (2.1%)23   (1.5%)0    (0.0%)
Encyclopedia456   (1.5%)14   (0.9%)78   (5.3%)
Equipment492   (1.6%)11   (0.7%)2    (0.1%)
Flight1088  (3.5%)49   (3.3%)0    (0.0%)
Inventory199   (0.6%)7    (0.5%)0    (0.0%)
Keyboard1318  (4.2%)71   (4.7%)5    (0.3%)
Loader416   (1.3%)35   (2.3%)6    (0.4%)
Main loop1347  (4.3%)52   (3.5%)0    (0.0%)
Market667   (2.1%)40   (2.7%)3    (0.2%)
Maths (Arithmetic)2236  (7.1%)164 (11.0%)0    (0.0%)
Maths (Geometry)940   (3.0%)41   (2.7%)4    (0.3%)
Missions567   (1.8%)22   (1.5%)0    (0.0%)
Moving1452  (4.6%)48   (3.2%)0    (0.0%)
Save and load403   (1.3%)31   (2.1%)13   (0.9%)
Screen mode87    (0.3%)11   (0.7%)3    (0.2%)
Ship hanger398   (1.3%)15   (1.0%)2    (0.1%)
Sound148   (0.5%)33   (2.2%)5    (0.3%)
Stardust748   (2.4%)15   (1.0%)0    (0.0%)
Start and end491   (1.6%)24   (1.6%)0    (0.0%)
Status317   (1.0%)8    (0.5%)0    (0.0%)
Tactics791   (2.5%)28   (1.9%)0    (0.0%)
Text2983  (9.5%)259 (17.3%)54   (3.7%)
Tube58    (0.2%)10   (0.7%)2    (0.1%)
Universe2377  (7.6%)78   (5.2%)4    (0.3%)
Utility routines488   (1.6%)57   (3.8%)5    (0.3%)
Workspaces0     (0.0%)0    (0.0%)877 (59.9%)
Totals3132414951465