ArticleslgStudy

computer science

BBC BASIC

BBC BASIC is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand BBC BASIC rather than just read about it. In short: BBC BASIC is an interpreted version of the BASIC programming language. It was developed by Acorn Computers Ltd when they were selected by the BBC to supply the computer for their BBC Computer Literacy Project in 1981.

BBC BASIC — main illustration
BBC BASIC — illustration

Key takeaways

  • BBC BASIC belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect BBC BASIC to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of BBC BASIC from memory before moving on to harder problems.

Reference excerpt

BBC BASIC is an interpreted version of the BASIC programming language. It was developed by Acorn Computers Ltd when they were selected by the BBC to supply the computer for their BBC Computer Literacy Project in 1981. It was originally supplied on an installed ROM for the BBC Microcomputer which used a 6502 microprocessor. When Acorn produced the Archimedes computer which used their ARM processor, further versions of BBC BASIC were produced. Acorn included a built in assembler, first for the 6502 and later for the ARM2 processor. Initially the BBC specified compatibility with Microsoft BASIC. Acorn were already extending their earlier Atom BASIC to include structured programming constructs. Particularly on the later Archimedes computers as the memory constraints reduced, BBC BASIC incorporated a more complete set of structured programming constructs commonly found in the ALGOL 60 group of computer languages. Alongside Acorn's version of BBC BASIC on the Archimedes, third party companies produced compiled versions of the language. Development and support has continued after the demise of Acorn Computers Ltd for newer ARM based computers. BBC BASIC is now available on other platforms either for emulators such as on Microsoft Windows or natively.

History

Precursor languages At Dartmouth College, two mathematics professors wanted all students to be able to program on their new college computer. The existing high-level languages, like FORTRAN and COBOL, were used by professionals and not really suitable for introductory programming by non-technical users. In 1964, they created Dartmouth BASIC (short for Beginner's All-Purpose Symbolic Instruction Code) to be a computer language anyone could use. Having a formula-based syntactic structure, it is a simplified FORTRAN. A combination of factors led to BASIC becoming a major language in the late 1960s, and in the 1970s when the first microcomputers were being built, it was already the de facto standard for small systems. The introduction of the Altair 8800 cemented the position of BASIC as the first programming language introduced for the platform was Paul Allen and Bill Gates' Altair BASIC. As new micros were introduced, almost all of them ran some variation of BASIC as its primary interface.

BBC's involvement During the 1970s, the BBC Continuing Education Department was considering how advancements in computer related technology would impact British society. The BBC required a microcomputer usable for demonstrations in their programming that could be purchased by the general public to enable the viewer to themselves experiment. They decided that such a microcomputer needed to be robust, have expansion capabilities and an implementation of BASIC compatible with Microsoft BASIC VN5. Jointly the government and the BBC established a public awareness and education campaign. This Computer Literacy Project (1980-1989) used the BBC's choice of the BBC Microcomputer produced by Acorn Computers Ltd. BBC BASIC was central to the user programming experience.

Acorn's involvement Acorn first developed System BASIC and Atom BASIC for their early 6502 microprocessor computers that were sold to kit-build customers. With the development of the Proton as a front-end processor, Acorn were designing for more powerful computing. In order to produce a computer to satisfy the BBC specification, the Proton became the BBC Microcomputer, usable as a stand alone computer. By retaining the capability to be connected to a Z80 computer, Acorn was able to comply with the requirement of a computer supporting CP/M. Sophie Wilson developed the implementations of BASIC at Acorn. The dialect on the BBC Microcomputer became compatible with Microsoft BASIC and so was acceptable to the BBC. It already had features from the ALGOL 60 group of computer languages that Wilson added to enable some structured programming methodology to be used.

Platforms and versions

BBC Micro

The full version list is available here: BASIC I, the original version, was shipped on early BBC Micros. BASIC II was used on the Acorn Electron and BBC Micros shipped after 1982, including the Model B. It added the OPENUP and OSCLI keywords, along with offset assembly and bug fixes. BASIC III was produced in both a UK version and a United States market version for Acorn's abortive attempt to enter the cross-Atlantic computer market. Apart from a few bug fixes, the only change from BASIC II was that the COLOUR command could also be spelled COLOR: regardless of which was input, the UK version always listed it as COLOUR, the US version as COLOR. The main place that BASIC III can be found is as the HI-BASIC version for the external second processor. BASIC IV, also known as CMOS BASIC, available on the BBC Master machines, was changed to use the new instructions available in the 65SC12 processor, reducing the size of the code and therefore allowing the inclusion of LIST IF, EXT# as a statement, EDIT, TIME$, ON PROC, | in VDU statements and faster floating point. Bug fixes were again included. BASIC IV (1986) was a further improvement to BASIC IV, and was included on the Master Compact machine. The version of BASIC on the Compact included re-coded mathematical routines, said to provide a 30% speed increase over the version included in the rest of the Master series. HI-BASIC was available in two versions, the first based on BASIC III, and the second based on BASIC IV. Both were built to run from a higher address (&B800) on the second processor, rather than the usual &8000 address on the BBC B. This allowed more program space to be available on either the external or internal 6502 second processors. A version was introduced to support a Zilog Z80 second processor. Another version of BBC BASIC, called BAS128, was supplied on tape and disc with the BBC Master and Master Compact; it loaded into main RAM and used the 64 KB of Sideways RAM for user programs. This provided support for much larger programs at the cost of being a lot slower than the normal ROM-based version. The interpreter can deal with both BASIC and 6502 assembly language, which can be included between the [ and ] characters. This contributed to the system's popularity with industrial and research engineers.

Further details/determining BASIC version

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with BBC BASIC

Start with the simplest possible case. Write down what BBC BASIC claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to BBC BASIC before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about BBC BASIC ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of BBC BASIC

In research
BBC BASIC appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses BBC BASIC in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
BBC BASIC is common in secondary-school and first-year university syllabi. It links to neighbouring topics Acorn Computers, BASIC interpreters, BASIC programming language, so understanding it makes those chapters shorter.
In everyday life
Look for BBC BASIC outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “BBC BASIC” →

How to study BBC BASIC in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what BBC BASIC means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain BBC BASIC out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is BBC BASIC in simple terms?

BBC BASIC is an interpreted version of the BASIC programming language. It was developed by Acorn Computers Ltd when they were selected by the BBC to supply the computer for their BBC Computer Literacy Project in 1981.

Why does BBC BASIC matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study BBC BASIC?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on BBC BASIC.

Tags

  • Acorn Computers
  • BASIC interpreters
  • BASIC programming language
  • BASIC programming language family
  • CP/M software
  • Discontinued BASICs
  • Programming languages created by women
  • Programming languages created in 1981
  • RISC OS programming tools

Keep exploring