This tutorial is the second of a set of lessons/tutorials that will focus on:
- Lesson 1: How to operate a BBC Micro Computer (Getting Started)
- Lesson 2: How to organise your files on a disk
- Lesson 3: How to write and edit programs using BBC Basic
- Lesson 4: Writing your own text-based adventure-story game using BBC Basic
BBC Micro Online Emulator
To complete these lessons, you do not need access to a physical BBC micro computer. You can use the following online emulator and type commands in your browser, without the need to install anything on your computer.
You may also find the following BBC Basic emulator quite handy for testing your own BBC Basic programs.
Using Floppy Disk Drives
If you are using a physical computer, remember that the BBC Micro model B does not come with a hard drive to save your work. It is possible to connect a floppy disk drive to save your work on a 5.25″ Double Density floppy disk. Depending on the model of your BBC Micro, you may be able to connect it to a 3.5″ floppy disk drive to use with Double Density (DD) floppy disks with a capacity of around 1MB. This is probably a more reliable solution.

💾 Disk Filing Systems (DFS and ADFS)
The original BBC Micros used a DFS (Disk Filing System) which means they used a flat file structure with a single catalogue of files on the disk. On a DFS system, it is not possible to create a true hierarchical structure using folders/directories.
There is a concept of a directory qualifier — a single letter prefix that groups files (e.g., W.MEMO means file MEMO in directory W which could stand for WORK for instance where G.RACING could be used to store a racing game in directory G for GAMES). This looks like folders but is purely a single-letter categorisation mechanism rather than a true nested directory structure.
With a standard BBC Micro (DFS), you cannot have multiple levels of directories with standard BBC DFS — it’s all in one flat catalogue (with a maximum of 31 files per disk). Also filenames need to be 7 characters or less.
More recent BBC Micros benefited from a more advanced filing system called ADFS (Advanced Disc Filing System) — an upgrade that supports real hierarchical folders/directories, structured in a tree (folders and sub-folders).
This was available on later BBC Micros and upgrades, and later machines like the BBC Master.
💾 Creating, Saving and Loading files on a BBC Micro (DFS)
On the BBC Micro, the main disks operations such as viewing the content of the disk use special commands (starting with *).
Your Task
Use all of the above commands to recreate the following file structure on your BBC Micro Computer or using the online emulator.
D.HELLO D.SPLASH W.TIMES W.MOON W.PASS
In the above file structure D stands for DEMO and W stands for WORK.
Our four files will contain the code provided in the four tabs below:
A colourful “Hello World” program.
10 MODE 2 20 COLOUR RND(7) 30 PRINT "HELLO WORLD" 40 GOTO 20
This code is a demo of a splash screen using blinking red text.
10 MODE 7 20 PRINT CHR$(136)CHR$(129)"SPLASH SCREEN!"
A program used to generate a times table:
10 REM Times Table Generator 20 INPUT "Enter a number: " ; n 30 PRINT 40 FOR i = 1 TO 10 50 PRINT n; " x "; i; " = "; n*i 60 NEXT
A program to caluculate you weight on the Moon!
10 REM Weight on the Moon Calculator 20 INPUT "Enter your weight on Earth in kg: " ; weight 30 moon = weight / 6 40 PRINT 50 PRINT "Your weight on the Moon would be:" 60 PRINT moon; " kg"
A program used to generate a random password:
10 REM PASSWORD GENERATOR 20 password$ = "" 30 FOR i = 1 TO 8 40 r = RND(36) - 1 50 IF r < 26 password$ = password$ + CHR$(65 + r) ELSE password$ = password$ + CHR$(48 + r - 26) 60 NEXT 70 PRINT "Password: "; password$






