Skip to navigation

BBC Micro Elite

Quick start guide

Welcome to the fully documented source code for the classic space game Elite on the BBC Micro Model B. Here's a quick summary of what you'll find on this site, whether you're looking to read about Elite and how it works, or you're just keen to get stuck into the source code.

Finding out how Elite works

Jumping straight into the source code

Tips for exploring the source code

  • Important routines are flagged with a "*" in the site menu.
  • You can explore the source code in two different ways. The easiest way is with each routine shown individually (see the "Elite source code by category" section in the site menu). These pages are small and easy to navigate in a browser. For example, the main game code starts at routine TT170, while the 3D scanner code is in SCAN.
  • The other way is to explore the original source code file structure (see the "Elite source code by file" section in the site menu). The source files are pretty big and can be a bit unwieldy, but they do show the routines in their original context. For example, the source code for the cassette version splits into the following files:
  • The 6502 Second Processor version has even more files. See the page on Building Elite from the source for more about the original source file structure.
  • You can flip between the two ways of looking at the source code using the "View in context" and "View individually" links in the header of each routine.
  • When viewing the source code, you can click on variable and routine names to see more information in a popup. The source code also has syntax highlighting.
  • The entry point for the main game code is routine TT170. If you want to follow the program flow all the way from the title screen around the main game loop, then there's a deep dive on program flow that has you covered.

Other helpful hints

  • If you want to build the source on a modern computer, then check out the page on Building Elite from the source, and for the buildable source files you can visit the two accompanying GitHub repositories, one for the cassette version and another for the 6502 Second Processor version.
  • The source code is designed to be read at an 80-column width and with a monospaced font, just like in the good old days. If you're viewing this on a phone, you may find it easier to view the source code pages in landscape.
  • You can change the site's colour scheme by clicking the theme icons in the top-right corner. The dark themes are inspired by the colour schemes used in the BBC Micro Model B and 6502 Second Processor versions of the game, but with a modern, IDE-like twist.

I hope you enjoy exploring the inner workings of BBC Elite as much as I have.