Here's a statistical breakdown of the source code for Lander. Click on the table headers to sort by that statistic. For more information, see the notes after the table.
Category | Instructions | Subroutines | Variables | Data (bytes) |
---|---|---|---|---|
3D objects | 236Â Â (9.6%) | 9Â Â Â (8.4%) | 16Â (28.1%) | 3868Â Â (13.1%) |
Copy protection | 9Â Â Â Â (0.4%) | 2Â Â Â (1.9%) | 4Â Â Â (7.0%) | 12Â Â Â Â Â (0.0%) |
Drawing lines | 43Â Â Â (1.8%) | 2Â Â Â (1.9%) | 1Â Â Â (1.8%) | 72Â Â Â Â Â (0.2%) |
Drawing the screen | 35Â Â Â (1.4%) | 1Â Â Â (0.9%) | 6Â Â (10.5%) | 100Â Â Â Â (0.3%) |
Drawing triangles | 460Â (18.8%) | 15Â (14.0%) | 0Â Â Â (0.0%) | 0Â Â Â Â Â Â (0.0%) |
Graphics buffers | 22Â Â Â (0.9%) | 2Â Â Â (1.9%) | 6Â Â (10.5%) | 104Â Â Â Â (0.4%) |
Landscape | 195Â Â (8.0%) | 7Â Â Â (6.5%) | 4Â Â Â (7.0%) | 28Â Â Â Â Â (0.1%) |
Main loop | 103Â Â (4.2%) | 6Â Â Â (5.6%) | 0Â Â Â (0.0%) | 78Â Â Â Â Â (0.3%) |
Maths (Arithmetic) | 11Â Â Â (0.4%) | 1Â Â Â (0.9%) | 6Â Â (10.5%) | 20496Â (69.3%) |
Maths (Geometry) | 505Â (20.6%) | 12Â (11.2%) | 4Â Â Â (7.0%) | 4616Â Â (15.6%) |
Particles | 431Â (17.6%) | 33Â (30.8%) | 0Â Â Â (0.0%) | 0Â Â Â Â Â Â (0.0%) |
Player | 229Â Â (9.3%) | 8Â Â Â (7.5%) | 2Â Â Â (3.5%) | 9Â Â Â Â Â Â (0.0%) |
Score bar | 109Â Â (4.4%) | 5Â Â Â (4.7%) | 4Â Â Â (7.0%) | 16Â Â Â Â Â (0.1%) |
Start and end | 62Â Â Â (2.5%) | 4Â Â Â (3.7%) | 4Â Â Â (7.0%) | 196Â Â Â Â (0.7%) |
Totals | 2450 | 107 | 57 | 29595 |
Some notes on the above:
- The instruction count does not include EQUB, EQUW, EQUD, EQUS or SKIP operatives; these are counted as data.
- Each part of a multi-part subroutine counts as an individual subroutine.
- The statistics are produced by a relatively simple static analysis of the source code. They are not 100% accurate, though they are pretty close.