ArticleslgStudy

computer science

Altair BASIC

Altair 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 Altair BASIC rather than just read about it. In short: Altair BASIC is a discontinued interpreter for the BASIC programming language that ran on the MITS Altair 8800 and subsequent S-100 bus computers. It was Microsoft's first product (as Micro-Soft), distributed by MITS under a contract.

Altair BASIC — main illustration
Altair BASIC — illustration

Key takeaways

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

Reference excerpt

Altair BASIC is a discontinued interpreter for the BASIC programming language that ran on the MITS Altair 8800 and subsequent S-100 bus computers. It was Microsoft's first product (as Micro-Soft), distributed by MITS under a contract. Altair BASIC was the start of the Microsoft BASIC product range.

Origin and development Bill Gates recalls that, when he and Paul Allen read about the Altair in the January 1975 issue of Popular Electronics, they understood that the price of computers would soon drop to the point that selling software for them would be a profitable business. Gates believed that, by providing a BASIC interpreter for the new computer, they could make it more attractive to hobbyists. They contacted MITS founder Ed Roberts, told him that they were developing an interpreter, and asked whether he would like to see a demonstration. This followed the engineering industry practice of a trial balloon, an announcement of a non-existent product to gauge interest. Roberts agreed to meet them for a demonstration in a few weeks, in March 1975. Gates and Allen had neither an interpreter nor even an Altair system on which to develop and test one. However, Allen had written an Intel 8008 emulator for their previous venture, Traf-O-Data, that ran on a PDP-10 time-sharing computer. Allen adapted this emulator based on the Altair programmer guide, and they developed and tested the interpreter on Harvard's PDP-10. Harvard officials were not pleased when they found out, but there was no written policy that covered the use of this computer. Gates and Allen bought computer time from a timesharing service in Boston to complete their BASIC program debugging. When fellow Harvard student Monte Davidoff stated he believed the system should use floating-point arithmetic instead of the integer arithmetic of the original versions, and claimed he could write such a system that could still fit within the memory limits, they hired Davidoff to write the package. The finished interpreter, including its own I/O system and line editor, fit in only four kilobytes of memory, leaving 727 bytes free for the interpreted program. In preparation for the demo, they stored the finished interpreter on a punched tape that the Altair could read, and Paul Allen flew to Albuquerque. While on final approach into the Albuquerque airport, Allen realized that they had forgotten to write a bootloader to read the tape into memory. Writing in 8080 machine language, Allen finished the program before the plane landed. Only when they loaded the program onto an Altair and saw a prompt asking for the system's memory size did Gates and Allen know that their interpreter worked on the Altair hardware. Later, they made a bet on who could write the shortest bootstrap program, and Gates won.

Versions and distribution

Roberts agreed to distribute the interpreter. He also hired Gates and Allen to maintain and improve it, causing Gates to take a leave of absence from Harvard. The original version would retroactively be known as 4K BASIC when they added upgraded versions, including 8K BASIC, Extended BASIC, and Disk BASIC. The smallest version, 4K BASIC, could run within a 4K RAM machine, leaving only about 790 bytes free for program code. In order to fit the language into such a small space, the 4K version lacked string manipulation and a number of common mathematical functions. These were added into the 8K BASIC version, which had string variables and manipulation functions, a larger set of math functions including RND for random numbers, Boolean operators, and PEEK and POKE. The 8K version is the basis for most versions of BASIC during the home computer era. Extended BASIC added PRINT USING and basic disk commands, while Disk BASIC further extended the disk commands to allow raw I/O. In October 1975, 4K BASIC sold for US$150 (equivalent to $897 in 2025), 8K BASIC for US$200 (equivalent to $1,197 in 2025), and Extended BASIC for US$350 (equivalent to $2,094 in 2025). The prices were discounted to $60, $75, and $150 respectively for those who purchased "8K of Altair memory, and an Altair I/O board". The language versions were distributed on paper tape or cassette tape. As they expected, the Altair was very popular with hobbyists such as the Homebrew Computer Club. Altair BASIC, as MITS' preferred BASIC interpreter, was also popular. However, the hobbyists took a "share-alike" approach to software and thought nothing of copying the BASIC interpreter for other hobbyists. Homebrew member Dan Sokol was especially prolific; after somehow obtaining a pre-market tape of the interpreter, he made 25 copies and distributed them at the next Homebrew meeting, urging recipients to make more copies. Gates responded in 1976 with a strongly worded Open Letter to Hobbyists that accused the copiers of theft and declared that he could not continue developing computer software that people did not pay for. Many hobbyists reacted defensively to the letter. Still others sent them a check, effectively creating the first shareware. Under the terms of the purchase agreement, MITS would receive the rights to the interpreter after it had paid a certain amount in royalties. However, Microsoft had developed versions of the interpreter for other systems such as the Motorola 6800. When they decided to leave MITS, a dispute arose over whether the full amount had been paid and whether the agreement applied to the other versions. Microsoft and MITS took the dispute to an arbitrator who, much to Roberts' surprise, decided in favor of Microsoft based on MITS failure to market the software with their "best efforts". BASIC interpreters remained the core of Microsoft's business until the early 1980s, when it shifted to MS-DOS.

See also Microsoft Binary Format (MBF) - the floating-point format used by Altair BASIC Interleaved instructions - according to Bill Gates used in Altair BASIC's error tables mutually sharing their instruction bytes

References

Further reading Freiberger, Paul; Swaine, Michael (1999). Fire in the Valley: The Making of the Personal Computer. New York, NY: McGraw Hill. ISBN 0-07-135892-7. Gates, Bill; Nathan Myhrvold; Peter Rinearson (1995). The Road Ahead. New York: Viking. ISBN 0-670-77289-5. Cringely, Robert X. Triumph of the Nerds. PBS, 1996. Bunnell, David (April 1975). "Altair BASIC — Up and Running". Computer Notes. 1 (1). Altair Users Group, MITS Inc.: 1, 3. Archived from the original on March 23, 2012. Retrieved 2007-04-18.

… excerpt ends here. Continue reading the full article.

Illustrations

Altair BASIC illustration
Altair BASIC: Altair 8K BASIC on paper tape
Altair 8K BASIC on paper tape

Worked examples

Example 1 — a first encounter with Altair BASIC

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

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

How to study Altair BASIC in 20 minutes

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

Frequently asked questions

What is Altair BASIC in simple terms?

Altair BASIC is a discontinued interpreter for the BASIC programming language that ran on the MITS Altair 8800 and subsequent S-100 bus computers. It was Microsoft's first product (as Micro-Soft), distributed by MITS under a contract.

Why does Altair 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 Altair 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 Altair BASIC.

Tags

  • 1975 software
  • BASIC programming language family
  • Discontinued Microsoft BASICs
  • Microsoft programming languages

Keep exploring