6502 by dbhqGitHub

All machines

BBC Micro

1981, Acorn, 6502, 2 MHz.

Acceptance test BbcAcceptanceTests: 3 passing.

It models the keyboard, the picture in all eight screen modes, teletext included, the sound chip, and the disc drive with Acorn's DFS, on MOS 1.20 and BBC BASIC 2.

An original Acorn BBC Micro Model B from the front left and slightly above, on a blue cloth: a beige case and a black keyboard panel, with a row of ten red function keys under the "British Broadcasting Corporation Microcomputer System" badge and three indicator lights for cassette motor, caps lock and shift lock to the left of the space bar.
Photograph: an original Acorn BBC Micro Model B, taken 18 February 2018.By simon.inns. Source: commons.wikimedia.org. Licence: CC BY 2.0. Changes: resized and converted to WebP for this page.

The machine

The picture is the machine's own, pixel for pixel, as its video chips draw it, in the television's shape. It models the picture, not a television: no scan lines, glow or curve.

With the screen focused, your keyboard types into the BBC Micro, each key by its place, and the machine's own keys below take a tap or a click. Tab moves on, so the page never keeps the keyboard.

The BBC Micro runs in your browser and needs JavaScript. Without it, the page and the program below are shown, but nothing runs.

Sound is off.

The disc drive

Hard Hat Harry 2, Sarah Walker, 2012. The sequel to Hard Hat Harry: a platform adventure in the caverns under a new arts centre.

Keys: Z and X move, SPACE starts.

Licence: GPL-3.0-or-later. The author's page, and its source in the repository.

Drive 0 is empty.

Insert and run puts the disc in drive 0 and starts it as the BBC Micro does, with SHIFT held through BREAK. Insert in drive 0 only puts it in, for *CAT and *RUN. Or use a disc of your own: drop a .ssd or .dsd disc image on the page, or press Insert a disc. The file is read in this tab and is not uploaded anywhere. Anything written to a disc is lost unless you press Save disc.

Disc drive limits

A library disc's image is fetched from this site when you insert it, not before. It goes in writable unless Write-protect is on, so a game can keep its high scores on it until the disc is changed or the page is left. Save disc downloads the disc as it now stands, which is the only way to keep what was written to it.

The page has drive 0 only: the controller and DFS have a second drive, and the page does not offer it.

DFS remembers the catalogue of the last disc it read until the drive stops, a moment after the last disc command, as on the real machine. So after changing discs, type *CAT first, or DFS may still list the old one.

The ROMs are Acorn's: MOS 1.20, BBC BASIC 2 and DFS 1.20. Their position is documented, not cleared: no licence or permission from any holder was found. Full rights: Whose ROMs these are.

Try it

Press Start, then type these lines, pressing Return after each. The acceptance test types the same program, from the same file, so the two cannot disagree.

10 FOR I=1 TO 5
20 PRINT "HELLO ";I
30 NEXT I
RUN

The screen should then show:

HELLO 1
HELLO 2
HELLO 3
HELLO 4
HELLO 5

The machine starts with CAPS LOCK on, as the real one does, so letters come out as capitals. Some symbols are not where a PC keyboard has them: the table of symbols says where each one is.

The keyboard

Each key on your keyboard presses the BBC Micro's key in the same place, so the symbols are where the BBC Micro has them, not where your keyboard prints them. Backspace and Delete are DELETE, Enter is RETURN, End is COPY, the arrow keys are the cursor keys and Esc is ESCAPE. The Break button, or the Pause key, is BREAK.

The on-screen keys under the screen have every key, in the machine's own layout, for a phone, a tablet or a mouse. Tap SHIFT or CTRL and it stays down for the next key you tap, so SHIFT then 2 types a double quote; tap it again to let go without typing.

Where each symbol is, and the keys only on screen
Where the symbols are
To typeOn the BBC MicroOn your keyboard
!SHIFT and 1Shift and 1
"SHIFT and 2Shift and 2
#SHIFT and 3Shift and 3
$SHIFT and 4Shift and 4
%SHIFT and 5Shift and 5
&SHIFT and 6Shift and 6
'SHIFT and 7Shift and 7
(SHIFT and 8Shift and 8
)SHIFT and 9Shift and 9
*SHIFT and :Shift and '
+SHIFT and ;Shift and ;
,,,
---
...
///
::'
;;;
<SHIFT and ,Shift and ,
=SHIFT and -Shift and -
>SHIFT and .Shift and .
?SHIFT and /Shift and /
@@[
[[]
\\\ (left of Z)
]]# or \ (beside Enter)
^^=
__` (left of 1)

Your keyboard presses every key but these, which are on the on-screen keys only:

  • TAB: Tab moves on from the machine, so the page never keeps hold of the keyboard.
  • SHIFT LOCK: no key is left over for it on a PC keyboard.
  • f0, f1, f2, f3, f4, f5, f6, f7, f8, f9: the browser keeps its function keys for itself (F5 reloads the page), so the page leaves them alone.

About the BBC Micro

What is modelled, and what is not

Not modelled, each part with an issue that says what it would take:

Credits and licences for the discs

The discs in the library are other people's software. Each is shared here under its author's own licence, not under this project's MIT licence, and is credited below with links to its licence and its author. Each disc's folder in the repository keeps its licence text, where the image came from and its SHA-256, and, where the licence asks for it, its source.

Only discs whose authors have written down that they may be shared are in the library. Commercial games are not, because nobody who holds their rights has said so. A disc image of your own, of anything, goes in with Insert a disc.

The six photographs of the original, and their credits

Each is credited as its source gives it. Under each is what the 3D model took from it.

An original Acorn BBC Micro Model B from the front left and slightly above, on a blue cloth: a beige case and a black keyboard panel, with a row of ten red function keys under the "British Broadcasting Corporation Microcomputer System" badge and three indicator lights for cassette motor, caps lock and shift lock to the left of the space bar.
Photograph: an original Acorn BBC Micro Model B, taken 18 February 2018.By simon.inns. Source: commons.wikimedia.org. Licence: CC BY 2.0. Changes: resized and converted to WebP for this page.Used for the model: the photograph of the machine at the head of its page; neither 3D model is traced or measured from it.
A BBC Micro from almost straight above on a dark red carpet: the plain beige case top, and the dark grey keyboard panel with ten red function keys and a black BREAK key in the top row, black keys with white legends, light brown cursor keys and COPY at the right, and a long space bar; across the back of the panel a clear strip with the words British Broadcasting Corporation Microcomputer System beside an owl, and three small red lights at the front left.
Photograph: a BBC Micro, Issue 7, from straight above, taken 4 February 2016.By Daniel Beardsmore. Source: commons.wikimedia.org. Licence: Public domain. Changes: resized and converted to WebP for this page.Used for the model: measured on its full-size original for the outside model: the case top registered on its four corners to the Service Manual's 415 by 345 mm, the keyboard's opening, the badge strip and its words, the order of the three lights, the keys registered to the MIT keyboard drawing and their colours.
The rear of a BBC Micro on white, nearly square on and a little from above. Along the black rear panel, left to right, each with its name printed above it: a small round UHF out socket, a metal video out socket, three round DIN sockets for RGB, RS423 and cassette, a 15-pin D socket for analogue in, and a round Econet socket. Two ventilation slots run above them, and the mains panel, switch and lead are at the right.
Photograph: the rear of a BBC Micro, with its ports, taken 26 December 2005.By Stuart Brady (assumed by Commons). Source: commons.wikimedia.org. Licence: Public domain. Changes: resized and converted to WebP for this page.Used for the model: measured on its full-size original for the outside model: each rear port's place and height on the scale of the 15-way D socket, each scored port checked against its socket on the board, and the ventilation slots and the mains panel.
A BBC Micro keyboard out of its case, on a wooden table: a cream circuit board with the speaker at the top left, red function keys, black keys with white legends, brown cursor keys and COPY, a long space bar, and three red lights at the front left.
Photograph: a BBC Micro keyboard out of its case, taken 24 June 2013.By Daniel Beardsmore. Source: commons.wikimedia.org. Licence: Public domain. Changes: resized and converted to WebP for this page.Used for the model: measured on its full-size original for the outside model: its keys' legends registered to the MIT keyboard drawing, as a check that is recorded.
A BBC Micro on white, from the front and above: the beige case and the dark keyboard panel, with ten red function keys, black keys with light legends, a slot left of the keys, three lights at the front left under the words cassette motor, caps lock and shift lock, and the badge strip reading British Broadcasting Corporation Microcomputer System.
Photograph: a BBC Micro from the front and above, taken 26 December 2005.By Stuart Brady (assumed by Commons). Source: commons.wikimedia.org. Licence: Public domain. Changes: resized and converted to WebP for this page.Used for the model: measured on its full-size original for the outside model: with the next photograph, one camera fitted to both, which places the keys, the opening and the three lights in height.
The same BBC Micro on white, from the front left and above, showing its plain left side and front edge as well as the top. The dark keyboard panel with its red function keys runs away to the right, with the slot left of the keys and the three lights at its front left.
Photograph: the same BBC Micro from the front left, taken 26 December 2005.By Stuart Brady (assumed by Commons). Source: commons.wikimedia.org. Licence: Public domain. Changes: resized and converted to WebP for this page.Used for the model: measured on its full-size original for the outside model: the second view for the camera fitted with the one before it.
Whose ROMs these are

The three ROMs are Acorn's: the operating system, MOS 1.20, BBC BASIC 2, and the Disc Filing System, DFS 1.20. The operating system's own text says copyright 1981 Acorn Computers Ltd., and BASIC's copyright 1982 Acorn. Who holds that copyright now was not established, and no licence or permission from any holder was found. Our copies are from jsbeeb's ROM folder at a pinned commit, kept in this repository under roms/ with where they came from, and checked by SHA-256 each time they are read. The position is documented, not cleared: if a rights holder asks, the ROMs will be removed.

The ROMs are kept in the repository, in roms/, with where they came from. The site checks each against its hash when it is built, and serves them beside the emulator.