Altair BASIC
Micro-Soft | |
Developer(s) | |
---|---|
Initial release | 2.0 (4K and 8K editions) July 1, 1975[3][4][5][6] |
Stable release | 5.0
/ 14 July 1978 |
Platform | Altair 8800 |
Type | Microsoft BASIC |
Altair BASIC is a discontinued
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.[7] 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.[8] 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
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.[9][10]
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, Extended ROM 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.[11][12]
In October 1975, 4K BASIC sold for $150, 8K BASIC for $200, and Extended BASIC for $350 (equivalent to $877 in 2024, equivalent to $1,169 in 2024, and equivalent to $2,045 in 2024, respectively). 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.[13]
As they expected, the Altair was very popular with hobbyists such as the
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
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
- ^ Raiders of the Lost Altair BASIC Source Code, Andrew Orlowski, 13 May 2001, The Register
- ^ Altair 8800 BASIC Reference_Manual 1975, Page 3 of PDF, ...and the joint authors of the ALTAIR BASIC interpreter, Bill Gates, Paul Allen and Monte Davidoff, will be glad to assist you.
- ^ Microsoft Fast Facts: 1975, Posted May 9, 2000, Bill Gates and Paul Allen complete BASIC and license it to their first customer, MITS of Albuquerque, N.M., the manufacturer of the Altair 8800 personal computer. This is the first computer language program written for a personal computer., Gates and Allen’s BASIC officially ships as version 2.0 in both 4K and 8K editions.
- ^ microsoft's timeline from 1975 - 1990 Archived 2008-05-14 at the Wayback Machine, July 1, Bill Gates' and Paul Allen's BASIC officially ships as version 2.0 in both 4K and 8K editions.
- ^ Computer_Notes 1975 01 05, Page 14, ALTAIR BASIC, CLAIM: Not just anybody's BASIC, FACT: Not just anybody's BASIC, BY: KEITH BRITTON, ROBERT MULLEN, Altair BASIC version 2.0 had a serious problem in that a jump out of a FOR.... NEXT loop left garbage on the stack. . Do this too often and the stack would grow relentlessly down from high memory until it ate the program. This has been fixed in version 3.0, according to Paul Allen
- ^ Computer_Notes 1975 01 05, Page 15, Advert: Altair BASIC]
- ISBN 0-07-135892-7. "While walking through Harvard Square one day, Allen spotted the Popular Electronics cover that features the Altair. ... Allen ran to tell Bill that he thought their big break had finally come. Bill agreed."
- ISBN 0-471-56886-4.
- ^ "We have a BASIC". New Mexico Museum of Natural History and Science. Archived from the original on March 23, 2012. Retrieved 2007-04-18.
- ISBN 0-471-56886-4.
- ^ "4 Altair Language Systems". Altair BASIC.
- ^ Altair BASIC (PDF). MITS. 25 August 1975.
- ^ Altair Basic for the 6800 Archived 7 February 2020 at the Wayback Machine, In January 1978 I purchased Altair 680 Basic from Computer Kits in Berkeley CA. I paid full price, $200, I didn't want Bill Gates to go broke. If you bought an Altair 680B kit with 16 K of RAM for $685 you would get BASIC for free., Michael Holley's SWTPC Collection Home Page
- ISBN 978-1-59184-537-9.
MITS/Pertec 'materially breached its best efforts obligation...'
Further reading
- ISBN 0-07-135892-7.
- Gates, Bill; 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.
External links
- Altair BASIC 3.2 (4K) - Annotated Disassembly
- Altair BASIC 3.2 (4K) - Annotated Disassembly
- Altair BASIC source disassembly, compiled by Reuben Harris and archived at archive.org
- Writing an Altair Basic, Interview with Bill Gates, Interviewer: David Allison (DA), Division of Computers, Information, & Society, National Museum of American History, Smithsonian Institution
- History of Microsoft Video: Bill Gates Talks about Altair Basic,[dead link ] (Lisa Feigenbaum) 24 Jun 2009, The Visual Basic Team, MSDN Blogs