ArticleslgStudy

computer science

CBASIC

CBASIC 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 CBASIC rather than just read about it. In short: CBASIC is a compiled version of the BASIC programming language written for the CP/M operating system by Gordon Eubanks in 1976–1977. It is an enhanced version of BASIC-E.

CBASIC — main illustration
CBASIC — illustration

Key takeaways

  • CBASIC 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 CBASIC to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of CBASIC from memory before moving on to harder problems.

Reference excerpt

CBASIC is a compiled version of the BASIC programming language written for the CP/M operating system by Gordon Eubanks in 1976–1977. It is an enhanced version of BASIC-E.

History BASIC-E was Eubank's master's thesis project. It was developed in PL/M by Eubanks for Gary Kildall's new CP/M operating system while both men were at the Naval Postgraduate School in Monterey, California. BASIC-E was based on a BASIC compiler originally written by Gary Kildall in 1974. Because it was developed at public expense, BASIC-E is in the public domain and cannot be marketed exclusively. Seymour Rubinstein, the marketing director of IMSAI contacted Eubanks and asked him to create a saleable version under contract for the IMSAI 8080 microcomputer. Eubanks developed CBASIC in his spare time while he was still a naval officer stationed on the submarine USS George Washington at Vallejo, California. He retained joint ownership of the program with IMSAI, and sold CB80 through his own company, Compiler Systems until it was acquired by Digital Research in 1981.

CBASIC COMPILER VER 2.07 CRUN VER 2.38 / COPYRIGHT 1981 COMPILER SYSTEMS INC.

Features BASIC-E and early versions of CBASIC compiled source code into an intermediate p-code file, which was then executed by a separate run-time interpreter program. CBASIC could execute in a minimum of 24 KB of memory. Line numbers in the program source were optional, unless needed as a label for a program jump. CBASIC proved very popular because it incorporated 14-digit binary-coded decimal (BCD) math which eliminated MBASIC's rounding errors that were sometimes troublesome for accounting. CBASIC2 adds the following features:

Integer variables Chaining with common variables Additional pre-defined functions Cross reference capability

Reception InfoWorld in 1980 described CBASIC as the "primary language for the development of commercial CP/M applications", because of developers' widespread familiarity with BASIC and ability to distribute royalty-free binaries without source code to CBASIC owners. The magazine stated that the language had become popular "despite serious drawbacks", including the required preprocessor for interpreted source code making debugging difficult, slow speed, and incompatible changes. Despite noting "irritants", Jerry Pournelle in December 1980 praised CBASIC's design and documentation. He said that BASCOM produced much faster binaries without CBASIC's awkward edit-compile-run-debug loop, however. In May 1982 he said that "advantages abound" in CB80 compared to BASCOM, such as the ability to redimension arrays, and superior garbage collection. Pournelle assured readers that the documentation was far superior to the usual Digital Research manuals. He denounced, however, the $2000 annual fee to sell software using CB80 as "sheer madness". In September 1982 Pournelle said that CB80 "remains a real competitor to Pascal and PL/I [with] few of the inherent defects of BASIC", citing its local variables and Pascal-like functions, and approved of its new, freer licensing. He said in May 1983 that Digital Research had "practically ruin[ed]" Eubanks' CBASIC manual after acquiring his company, but that the new edition was much better.

References

External links Gordon Eubanks own story of BASIC-E and CBASIC, Computer World oral history transcript, November 2000 BASIC-E Reference Manual (December 1976) CBASIC 2 Reference Manual (Table of contents on p. 115) November 1981 Another CBASIC description Alternate CBASIC history at the Wayback Machine (archived May 4, 2006) cbc – a CBASIC to C converter Interpreter in 6502 assembler CBASIC 2.8 = CBASIC-86 1.00 Archived March 4, 2016, at the Wayback Machine Posting by Emmanuel Roche

Illustrations

CBASIC illustration

Worked examples

Example 1 — a first encounter with CBASIC

Start with the simplest possible case. Write down what CBASIC 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 CBASIC 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 CBASIC 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 CBASIC

In research
CBASIC 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 CBASIC 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
CBASIC is common in secondary-school and first-year university syllabi. It links to neighbouring topics BASIC compilers, BASIC interpreters, BASIC programming language family, so understanding it makes those chapters shorter.
In everyday life
Look for CBASIC 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 “CBASIC” →

How to study CBASIC in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what CBASIC 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 CBASIC out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is CBASIC in simple terms?

CBASIC is a compiled version of the BASIC programming language written for the CP/M operating system by Gordon Eubanks in 1976–1977. It is an enhanced version of BASIC-E.

Why does CBASIC 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 CBASIC?

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 CBASIC.

Tags

  • BASIC compilers
  • BASIC interpreters
  • BASIC programming language family
  • CP/M software
  • Programming languages created in 1977

Keep exploring