BASIC-8
   HOME

TheInfoList



OR:

BASIC-8, is a
BASIC programming language BASIC (Beginners' All-purpose Symbolic Instruction Code) is a family of General-purpose programming language, general-purpose, high-level programming languages designed for ease of use. Dartmouth BASIC, The original version was created by John ...
for the
Digital Equipment Digital Equipment Corporation (DEC ), using the trademark Digital, was a major American company in the computer industry from the 1960s to the 1990s. The company was co-founded by Ken Olsen and Harlan Anderson in 1957. Olsen was president until ...
(DEC)
PDP-8 The PDP-8 is a 12-bit computing, 12-bit minicomputer that was produced by Digital Equipment Corporation, Digital Equipment Corporation (DEC). It was the first commercially successful minicomputer, with over 50,000 units being sold over the model's ...
series
minicomputer A minicomputer, or colloquially mini, is a class of smaller general purpose computers that developed in the mid-1960s and sold at a much lower price than mainframe and mid-size computers from IBM and its direct competitors. In a 1970 survey, ...
s. It was the first BASIC dialect released by the company, and its success led DEC to produce new BASICs for its future machines, notably
BASIC-PLUS BASIC-PLUS is an extended dialect of the BASIC programming language that was developed by Digital Equipment Corporation (DEC) for use on its RSTS/E time-sharing operating system for the PDP-11 series of 16-bit minicomputers in the early 1970s thro ...
for the
PDP-11 The PDP-11 is a series of 16-bit minicomputers sold by Digital Equipment Corporation (DEC) from 1970 into the 1990s, one of a set of products in the Programmed Data Processor (PDP) series. In total, around 600,000 PDP-11s of all models were sold, ...
series. DEC's adoption of BASIC cemented the use of the language as the standard educational and utility
programming language A programming language is a system of notation for writing computer programs. Most programming languages are text-based formal languages, but they may also be graphical. They are a kind of computer language. The description of a programming ...
of its era, which combined with its small system requirements, made BASIC the major language during the launch of
microcomputer A microcomputer is a small, relatively inexpensive computer having a central processing unit (CPU) made out of a microprocessor. The computer also includes memory and input/output (I/O) circuitry together mounted on a printed circuit board (PC ...
s in the mid-1970s.


History

David Ahl joined
Digital Equipment Digital Equipment Corporation (DEC ), using the trademark Digital, was a major American company in the computer industry from the 1960s to the 1990s. The company was co-founded by Ken Olsen and Harlan Anderson in 1957. Olsen was president until ...
's (DEC's) expanding educational sales division in 1969. The division was mostly tasked with selling the
PDP-8 The PDP-8 is a 12-bit computing, 12-bit minicomputer that was produced by Digital Equipment Corporation, Digital Equipment Corporation (DEC). It was the first commercially successful minicomputer, with over 50,000 units being sold over the model's ...
minicomputer A minicomputer, or colloquially mini, is a class of smaller general purpose computers that developed in the mid-1960s and sold at a much lower price than mainframe and mid-size computers from IBM and its direct competitors. In a 1970 survey, ...
to
high school A secondary school describes an institution that provides secondary education and also usually includes the building where this takes place. Some secondary schools provide both '' lower secondary education'' (ages 11 to 14) and ''upper seconda ...
s and
college A college (Latin: ''collegium'') is an educational institution or a constituent part of one. A college may be a degree-awarding tertiary educational institution, a part of a collegiate or federal university, an institution offering ...
s. These were not yet widespread; a typical single-user machine of the late 1960s cost in the order of $10,000 (), not including
mass storage In computing, mass storage refers to the storage of large amounts of data in a persisting and machine-readable fashion. In general, the term is used as large in relation to contemporaneous hard disk drives, but it has been used large in relati ...
and other
peripheral A peripheral or peripheral device is an auxiliary device used to put information into and get information out of a computer. The term ''peripheral device'' refers to all hardware components that are attached to a computer and are controlled by the ...
s. Around this time, both
Hewlett-Packard The Hewlett-Packard Company, commonly shortened to Hewlett-Packard ( ) or HP, was an American multinational information technology company headquartered in Palo Alto, California. HP developed and provided a wide variety of hardware components ...
(HP) and
Honeywell Honeywell International Inc. is an American publicly traded, multinational conglomerate corporation headquartered in Charlotte, North Carolina. It primarily operates in four areas of business: aerospace, building technologies, performance ma ...
had introduced new 16-bit minicomputers with
time sharing In computing, time-sharing is the sharing of a computing resource among many users at the same time by means of multiprogramming and multi-tasking.DEC Timesharing (1965), by Peter Clark, The DEC Professional, Volume 1, Number 1 Its emergence a ...
that were becoming popular in the educational markets. In particular, HP's
16-bit 16-bit microcomputers are microcomputers that use 16-bit microprocessors. A 16-bit register can store 216 different values. The range of integer values that can be stored in 16 bits depends on the integer representation used. With the two mos ...
HP 2100 The HP 2100 is a series of 16-bit minicomputers that were produced by Hewlett-Packard (HP) from the mid-1960s to early 1990s. Tens of thousands of machines in the series were sold over its twenty-five year lifetime, making HP the fourth largest mi ...
with
HP Time-Shared BASIC HP Time-Shared BASIC (HP TSB) is a BASIC programming language interpreter for Hewlett-Packard's HP 2000 line of minicomputer-based time-sharing computer systems. TSB is historically notable as the platform that released the first public versio ...
was very popular leading HP to package it as the HP2000 for sales into the programming and educational markets. Although the HP2000 was even more expensive than the PDP-8, by sharing access among many users, typically up to 16 at a time, the effective cost was much lower than single-user machines. At the time, DEC was heavily promoting their own language for educational uses, FOCAL, a cut-down version of
JOSS Joss may refer to: * Joss (name), including a list of people with the name * JOSS, a time-sharing programming language * Joss (Chinese statue), a religious object * Joss JP1, an Australian-built supercar * Joss paper, a type of burnt offering * J ...
. The language had a number of features that allowed it to run in extremely limited memory, including the PDP-8's 4 KB of
core memory Core or cores may refer to: Science and technology * Core (anatomy), everything except the appendages * Core (manufacturing), used in casting and molding * Core (optical fiber), the signal-carrying portion of an optical fiber * Core, the central ...
. It was conceptually similar to BASIC, especially in the interactive method of typing in programs and the general layout of programs. Ahl collected FOCAL programs submitted from users and published them in the department's EDU newsletter. Ahl found that prospective customers were not interested in FOCAL, at least outside the
Boston Boston (), officially the City of Boston, is the state capital and most populous city of the Commonwealth of Massachusetts, as well as the cultural and financial center of the New England region of the United States. It is the 24th- mo ...
-area where DEC was located. BASIC was already widely used by this time, and a growing library of educational programs and games in BASIC were becoming available. These were being published in
newsletter A newsletter is a printed or electronic report containing news concerning the activities of a business or an organization that is sent to its members, customers, employees or other subscribers. Newsletters generally contain one main topic of int ...
format, almost always in HP2000 dialect, and the sheer volume of BASIC programs was overwhelming FOCAL. Ahl found no interest on the part DEC management or software development department to produce a BASIC, nor any interest in supporting FOCAL on the other machines in their lineup. He also noted an increasing hostility to the idea of allowing any other company to produce a version of the language. Concluding a BASIC was required for the PDP-8 to allow it to compete in the educational market, he hired a
Brooklyn Brooklyn () is a borough of New York City, coextensive with Kings County, in the U.S. state of New York. Kings County is the most populous county in the State of New York, and the second-most densely populated county in the United States, be ...
area programmer to develop one. This became BASIC-8. To aid its uptake, Ahl personally ported over several popular FOCAL programs, notably the games Lunar Lander and
The Sumerian Game ''The Sumerian Game'' is a text-based strategy video game of land and resource management. It was developed as part of a joint research project between the Board of Cooperative Educational Services of Westchester County, New York and IBM in 196 ...
, which he renamed Hamurabi. BASIC-8 was an immediate best-seller, and by the early 1970s the company was once again a popular choice in educational markets. The company began packaging systems in a fashion similar to the HP2000, with a line of "Edusystems" tailored to different needs. Although DEC continued to promote FOCAL, use evaporated almost instantly with the release of BASIC-8. DEC would ultimately offer five different BASICs for the PDP-8, each one making up for limitations of the original minimal implementation. With the release of the
PDP-11 The PDP-11 is a series of 16-bit minicomputers sold by Digital Equipment Corporation (DEC) from 1970 into the 1990s, one of a set of products in the Programmed Data Processor (PDP) series. In total, around 600,000 PDP-11s of all models were sold, ...
in 1970, an entirely new and greatly expanded dialect was offered,
BASIC-PLUS BASIC-PLUS is an extended dialect of the BASIC programming language that was developed by Digital Equipment Corporation (DEC) for use on its RSTS/E time-sharing operating system for the PDP-11 series of 16-bit minicomputers in the early 1970s thro ...
. Customers complained about the variations between dialects, but Ahl later claimed that if he had been a stickler for such details it would have taken another two years to get the products out. Ahl had also noticed another curious fact; when they began publishing the EDU newsletter, they expected perhaps 2000 to 3000 subscribers, about 10 each for DEC's 300 educational sites. Within 18 months, circulation had reached 20,000, significantly more than all of the computers in the educational field. When he inquired, he found that many subscribers didn't even have a computer, let alone a DEC one, and were reading it for ideas on how computers might be used in education. This led to early consideration of an independent educational-focused computer magazine. Invariably the most popular section of EDU were the BASIC listings, especially games. This led to his decision to collect the most popular programs, notably
Super Star Trek ''Star Trek'' is a text-based strategy video game based on the ''Star Trek'' television series and originally released in 1971. In the game, the player commands the USS ''Enterprise'' on a mission to hunt down and destroy an invading fleet of K ...
, into book form as 1973's ''101 BASIC Games''. This sold tens of thousands of copies over three print runs. In spite of some success on the part of the educational division, at the start of the 1973–1975 recession, DEC decided to reduce the size of the group. When Ahl complained that the division should be left alone, his boss put him on the list of people to be
laid off A layoff or downsizing is the temporary suspension or permanent termination of employment of an employee or, more commonly, a group of employees (collective layoff) for business reasons, such as personnel management or downsizing (reducing the ...
. Even before he received his last paycheck, he was re-hired into a newly-formed hardware group. They produced two small prototype computers, one all-in-one design based on the PDP-8, and a slightly larger system based on the newer
PDP-11 The PDP-11 is a series of 16-bit minicomputers sold by Digital Equipment Corporation (DEC) from 1970 into the 1990s, one of a set of products in the Programmed Data Processor (PDP) series. In total, around 600,000 PDP-11s of all models were sold, ...
. Other divisions in the company became concerned these might cut into their own sales and began to agitate against the systems. This ultimately reached the desk of
Ken Olsen Kenneth Harry "Ken" Olsen (February 20, 1926 – February 6, 2011) was an American engineer who co-founded Digital Equipment Corporation (DEC) in 1957 with colleague Harlan Anderson and his brother Stan Olsen. Background Kenneth Harry Olsen w ...
, who finally stated that he could not understand why anyone might want a computer for their private use. The project was killed. Ahl left the company and joined
AT&T AT&T Inc. is an American multinational telecommunications holding company headquartered at Whitacre Tower in Downtown Dallas, Texas. It is the world's largest telecommunications company by revenue and the third largest provider of mobile tel ...
's educational sales department. Ahl had continued publishing EDU before leaving DEC, but with his departure, only one or two more editions were published before the company abandoned it. This left the market to HP, who had by this time had widespread distribution of their BASIC programs in the
People's Computer Company People's Computer Company (PCC) was an organization, a newsletter (the ''People's Computer Company Newsletter'') and, later, a quasiperiodical called the ''Dragonsmoke''. PCC was founded and produced by Dennis Allison, Bob Albrecht and George Fire ...
newsletter and the rapidly growing
Minnesota Educational Computing Consortium The Minnesota Educational Computing Consortium (later Corporation), most commonly known as MECC, was an organization founded in 1971 best known for developing the edutainment video game series '' The Oregon Trail'' and its spinoffs. The goal of ...
(MECC) collection. Noting a lack of a newsletter like EDU aimed specifically at the education market, Ahl soon started ''
Creative Computing ''Creative Computing'' was one of the earliest magazines covering the microcomputer revolution. Published from October 1974 until December 1985, the magazine covered the spectrum of hobbyist/home/personal computing in a more accessible format th ...
'' magazine and later left AT&T to produce it full-time. In 1975 he purchased the rights to ''101 BASIC Games'' from DEC and re-launched it as ''
BASIC Computer Games ''BASIC Computer Games'' is a compilation of type-in computer games in the BASIC programming language collected by David H. Ahl. Some of the games were written or modified by Ahl as well. Among its better-known games are '' Hamurabi'' and '' Sup ...
''. This went on to become the first million-selling computer book. HP's dialect formed the basis for many early
personal computer A personal computer (PC) is a multi-purpose microcomputer whose size, capabilities, and price make it feasible for individual use. Personal computers are intended to be operated directly by an end user, rather than by a computer expert or tec ...
BASIC implementations, including
Integer BASIC Integer BASIC is a BASIC interpreter written by Steve Wozniak for the Apple I and Apple II computers. Originally available on cassette for the Apple I in 1976, then included in ROM on the Apple II from its release in 1977, it was the first ve ...
and
Atari BASIC Atari BASIC is an interpreter (computing), interpreter for the BASIC programming language that shipped with the Atari 8-bit family of MOS Technology 6502, 6502-based home computers. Unlike most American BASICs of the home computer era, Atari BAS ...
among others.
Bill Gates William Henry Gates III (born October 28, 1955) is an American business magnate and philanthropist. He is a co-founder of Microsoft, along with his late childhood friend Paul Allen. During his career at Microsoft, Gates held the positions ...
had used BASIC-PLUS in high school, and this formed the basis for what became
Altair BASIC 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 BASI ...
in 1975. Continued development and sales of varieties of
Microsoft BASIC Microsoft BASIC is the foundation software product of the Microsoft company and evolved into a line of BASIC interpreters and compiler(s) adapted for many different microcomputers. It first appeared in 1975 as Altair BASIC, which was the first ve ...
for multiple platforms led to DEC's dialect ultimately becoming the ''de facto'' standard on home computers rather than HP's version.


Description

Like most versions of BASIC, BASIC-8 could be operated in "immediate mode" where users type in commands and immediately receive a response (like a hand-held calculator), or in "deferred mode", where entries were stored for later execution using the command . Deferred mode is triggered by typing a line number at the start of a line of text. In BASIC-8 the line numbers could range from 1 to 2046; the PDP-8 was a 12-bit machine and normally held a value from −2048 to +2047 in a single
word A word is a basic element of language that carries an semantics, objective or pragmatics, practical semantics, meaning, can be used on its own, and is uninterruptible. Despite the fact that language speakers often have an intuitive grasp of w ...
. As was common in many minimal BASIC implementations of the era, statements could only be used to perform a branch; had to be followed by a line number to jump to, it could not contain arbitrary statements as was common in later BASICs. Thus was valid, was not. An alternate form was . The space in GO TO is not optional as it was in some dialects, either in an or as a stand-alone statement. Subroutines were supported using , but could not be called from statements. Loops could be performed with or using . In contrast to most BASICs, was not optional, and had to be used on all assignments. Variable names could be a single letter or a letter and a single digit. can be used to define one and two dimensional arrays. The floating point number format had 8 significant digits and exponents from −38 to +38. Standard math symbols were used for arithmetic, , , , and (represented on a
Teletype Model 33 The Teletype Model 33 is an electromechanical teleprinter designed for light-duty office use. It is less rugged and cost less than earlier Teletype machines. The Teletype Corporation introduced the Model 33 as a commercial product in 1963 after ...
as an up-arrow), and it included the standard functions , , , , , , , , , and . There was no support for string variables or functions. Boolean comparisons in statements included , , , , and . was supported for user-defined functions. supported both commas and semicolons could be used to space out multiple outputs in tabular format or with no space, respectively. was supported and could read multiple inputs in a single statement, but prompts were not supported. Lacking file-operating commands, any data within a program could only be entered using statements and read using . returned the back to the start of the list; there was no optional line number as seen in some dialects. , and round out the command list.


Implementation

In contrast to most competing minicomputer-based systems and early home computers, where BASIC was the entire environment seen by the user, BASIC-8 was one of a number of programs that could be run at the
command line A command-line interpreter or command-line processor uses a command-line interface (CLI) to receive commands from a user in the form of lines of text. This provides a means of setting parameters for the environment, invoking executables and pro ...
of the underlying
TSS/8 TSS/8 is a discontinued time-sharing operating system co-written by Don Witcraft and John Everett at Digital Equipment Corporation in 1967. DEC also referred to it as Timeshared-8 and EduSystem 50. The operating system runs on the 12-bit PDP-8 co ...
operating system An operating system (OS) is system software that manages computer hardware, software resources, and provides common services for computer programs. Time-sharing operating systems schedule tasks for efficient use of the system and may also in ...
. As such, commands that would normally be associated with BASIC itself, like or , are not part of the language proper, but part of the shell, and thus cannot be used within programs. This was typical of many early BASIC environments, where the editor and runtime were completely different programs. BASIC programs could be entered by starting BASIC-8 at the command line and typing, or by starting a
text editor A text editor is a type of computer program that edits plain text. Such programs are sometimes known as "notepad" software (e.g. Windows Notepad). Text editors are provided with operating systems and software development packages, and can be us ...
like EDIT-8 and typing in the code as a text file. In both cases, the BASIC code was stored as pure text, and retained any extra characters the user typed – one could type in code without spaces to make the file more compact, or add additional spaces to indent loops. When BASIC was started one could type to clear any existing program, or to load an existing file. At any time, one could the working file or to delete an existing saved file. produced a list of saved program files. printed the source code, and could be limited using two comma-separated values for start and end line numbers, like . deleted a range of lines from the program, started execution, and exited BASIC and returned to the TSS/8 command line. Internally, the system consisted of five separate sub-programs that were loaded as required in order to minimize memory use. These were , , , and . COMPILER was not a
compiler In computing, a compiler is a computer program that translates computer code written in one programming language (the ''source'' language) into another language (the ''target'' language). The name "compiler" is primarily used for programs that ...
in the modern sense of the word, as it did not generate lower-level language; in modern terms it would be referred to as a "tokenizer" or front-end. Its purpose was to parse the BASIC
source code In computing, source code, or simply code, is any collection of code, with or without comments, written using a human-readable programming language, usually as plain text. The source code of a program is specially designed to facilitate the wo ...
and convert it into a series of "tokens", one-word numbers representing various keywords and commands. The result was then left in memory while INTERPRETER was instructed to begin running the resulting tokenized code. ERROR mapped error numbers in BASIC to textual output. A table in memory, SYPTBA, held pointers to the locations of the programs on disk.


Notes


References


Citations


Bibliography

* * * {{Digital Equipment Corporation BASIC programming language Digital Equipment Corporation