BASICODE
This article needs additional citations for verification. (April 2022) |

BASICODE was a computer project intended to create a unified standard for the BASIC programming language. BASIC was available on many popular home computers, but there were countless variants that were mostly incompatible with each other. The project was initiated in 1980 by Hobbyscoop, a radio program of the Dutch broadcasting organisation Nederlandse Omroep Stichting (NOS).
The language implementations were architecture-specific utility applications that executed calls of
BASICODE
The situation at the beginning of the 1980s


From the late 1970s to the late 1980s home computers based on 8-bit processors were popular. Well-known models in the USA included the TRS-80, the PET 2001, VIC-20, Commodore 64, and the Atari 8-bit computers. In Europe, there were also the ZX80, ZX81, ZX Spectrum, Acorn/BBC micros, several Amstrad systems, Dragon 32/64 from Dragon Data and the KC85 family popular in the German Democratic Republic. All these computers had a CPU of the MOS Technology 6502 or Zilog Z80, or a variant thereof. Most were supplied with (or could be upgraded to) at least 16 kilobyte of RAM although many were supplied with much more. Most would provide connectors for a cassette drive or have one built-in for data storage, and a BASIC interpreter that was generally stored in ROM. The flat learning curve of BASIC, which had been designed with newcomers to programming in mind, and the instant availability of the language on all these computers led to many users writing and sharing their own programs.
A problem was that sharing programs and data across computers by different manufacturers was difficult, because the various BASIC dialects were often incompatible in some areas. Many used different BASIC commands to achieve the same result (such as clearing the screen, drawing a pixel or playing a sound), meaning that for example, a BASIC program written for the C64 was unlikely to work on an Atari XL without modification and vice versa. Another difficulty was the fact that while these computers were similar, they still differed in key hardware aspects like screen resolution, available color palette or audio abilities. Finally, the data formats used for storing data on cassette were incompatible as well.
The first standard

In 1979 the Dutch broadcaster NOS began transmitting computer programs by radio. Because programs and data were stored as audio on compact cassettes, it was possible to record such a broadcast on tape and load it into the computer later. However, because of the problems mentioned earlier, the program also had to be adapted for a variety of popular computers and broadcast multiple times. Because the compact cassette has a very low data density compared to today's storage media, the recording of the programs took quite a long time, and only a limited number of programs could be broadcast per show. So, the additional broadcasting of different versions of the same programs was a great inconvenience.[1]
In 1982 the executives at NOS decided to develop a unified data format. An application that was specific for each computer model, called Bascoder, managed the recall and storage of programs and data in this unified format from tape. The Bascoders were broadcast by NOS as well, but could also be bought from NOS on cassette and shared among friends and acquaintances. The format, which was very well-protected against interference, could be read and written by many popular home computer systems. The robustness of the format also made broadcasting via
BASICODE 2


The standard solved one of the aforementioned problems, the incompatible data formats. However, programs still had to be adapted to each computer's BASIC dialect and hardware capabilities. Limiting the programs to only use instructions common across all dialects meant big limitations in terms of functionality, for example completely refraining from using graphics and sound whilst limiting functionality for data input using the keyboard and character output on the screen. For these reasons, in 1983 the enhanced standard BASICODE 2 was created.[1] Bascoders using this standard did not only contain routines for input and output of data to tape. In addition to a set of about 50 BASIC commands, functions and operators that were common across all BASIC dialects, the language standard of BASICODE 2 defined a library of subroutines that emulated the same capabilities across all supported computers.
To achieve this, all program lines below 1000 were reserved for the Bascoder, and BASICODE programs could only start at line number 1000. The subroutines of the Bascoder in the lines below 1000 were called with a
Thus, the Bascoders were loaded on the various computers like normal programs, and when run, they provided the additional routines for the common standard and cassette I/O. Programs written in BASICODE were only usable after the Bascoder had been loaded and started. However, on some computers the BASICODE programs could be merged with the routines of the Bascoders and saved in the native data format. The resulting program was not platform independent any longer, but due to the higher data density of most native formats it could be loaded much faster than the same program in BASICODE format. Also, because it was not necessary to load the complete Bascoder to run the program, more RAM remained available at run time.
There were BASICODE 2 Bascoders for the
and others. Additionally, advanced users were able to write their own Bascoder for their system of choice, since the language standard and data format were open and well-documented. The BASICODE 2 standard made the development of platform independent programs with advanced capabilities (for the time) possible. In addition, BASICODE was used to transmit and share information like computer scene news via radio, in the form of so-called "journals". Similarly, BASICODE coding tutorials and other documentation could also be transmitted this way.BASICODE 3 / 3C
In 1986, the new BASICODE 3 standard was developed.[1] The most important additions were routines for simple monochrome graphics, reading and writing data from within programs and sound output. A booklet was published about the language, which came with a cassette containing Bascoders for various microcomputers.[3] BASICODE 3 made BASICODE popular in the computer scene of the GDR, and from 1989 onward BASICODE programs were transmitted via radio throughout the GDR. Also, a book was published which included a vinyl record with Bascoders for all computers common in the GDR.[4] The last revision of BASICODE, which featured color graphics, was released as BASICODE 3C in 1991.
The end of BASICODE
From about 1990 onward the popularity of BASICODE declined rapidly due to the rise of 16- and 32-bit computers, such as the Atari ST, CBM Amiga, Acorn Archimedes and the plethora of IBM-PC compatible clones. Even though there were Bascoders for these machines, BASICODE was too limited to make use of the resources that the new generation of computers provided. As the hardware, Operating Systems and software of new computers became more and more complex, many users were unable or less inclined to write their own programs. The rise of several sophisticated but incompatible graphical user interfaces and the decline in popularity of 8-bit computers, reduced the usefulness of BASICODE, and brought about the demise.
The successor of the GDR's state broadcaster, the Deutschlandsender Kultur (which later became part of the new Deutschlandradio), continued to broadcast BASICODE programs until about 1992. A planned standard called BASICODE 4 never became reality, because NOS stopped supporting the project shortly after BASICODE 3C was released. BASICODE is still used by enthusiasts, in particular 8-bit computer fans, for nostalgic value, but is not of any practical relevance.
Historical significance
BASICODE was an early attempt at creating a standard for the exchange of programs and data across mutually incompatible home computer systems. It is roughly contemporary to the
It must be stated that BASICODE was, by design, unable to use the capabilities of the host computers to their full extent. The language standard defined by BASICODE was the lowest common denominator of all relevant computer systems. This concept was partially abandoned only with BASICODE3/3C, as some computers or computer variants like the
The underlying concept of BASICODE, which is the definition of a language standard for platform-independent software development and the implementation of said standard as system-specific runtimes (Bascoder) was later revisited in the programming language
The BASICODE data format

In the BASICODE format, the recording of programs is analogous to the recording of data. So, when recording programs, the commands are not read and written in the form of single
A data block begins with the character 02 (STX, start of text), and ends with the character 03 (ETX, end of text). After ETX, a check byte made up of the previous bytes including STX and ETX by binary addition (XOR), is transmitted. A 0D character (decimal 13) marks the end of a line during transmission. Data files created by programs are able to use all characters as data and must contain no control characters.
Each byte is transmitted in the sequence "1 start bits - 8 data bits - 2 stop bits". The data bits are sent with the least significant bit first. The most significant bit is transmitted inverted and is always 0 (transmitted as 1) because BASICODE uses only ASCII characters. So another way to describe the transmit sequence is "1 start bit - 7 data bits - 3 stop bits". The resulting redundancy is intended for maximising compatibility with different computers.
For the audio signals, square waves in the form of a 1200 Hz wave for a "0" bit and two 2400 Hz waves for a "1" bit are used, resulting in a time of 1/1200 seconds for each bit. A pause longer than 1/1800 seconds between waves marks the beginning of a byte, making the following wave the start bit. After the start bit and before the eight data bits is another pause of at least 1/1800 seconds. A 2400 Hz signal with a length of five seconds marks the beginning of a transmission and is used for synchronization of the reading program. At the end of the transmission, a 2400 Hz signal with a length of one second is sent.
The theoretical data rate of this format is 1200 bits per second. Considering the transmission of three additional bits per data byte and the pauses before and after the start bit, this results in a usable data rate of 102 bytes per second, and about 6 kilobytes per minute.
Decoding Audio Cassettes
On a modern computer, Basicode audio cassettes can be decoded using minimodem, a freely available software modem. For example, for a cassette converted into a WAV file basicode.wav, can be decoded to its corresponding data bytes via the command:
minimodem --rx 1200 -S 1200 -M 2400 --startbits 1 -7 --stopbits 3 -f basicode.wav >basicode.txt
See also
References
- ^ a b c d e Weet ik! October 1991, ‘Basiscode-3’ by Bob Munniksma
- ^ Aarde & Kosmos issue 7, 1986, ‘BASICODE-3, uitgebreid esperanto voor komputers’ by Rien van Dongen
- ^ Basicode-3 by Hermine Bakker, 1986, ISBN 90-201-1949-4
- ^ BASICODE Mit Programmen auf Schallplatte für Heimcomputer by Horst Völz, 1990, ISBN 3-341-00895-0
Further reading
- (in German) Michael Wiegand, Manfred Fillinger: BASICODE. Mit Programmkassette. ISBN 3-473-44010-8
- (in Dutch) Hermine Bakker, Jaques Haubrich (authors), Stichting BASICODE (publisher): Het BASICODE-3 boek. 3. Auflage. Kluwer Technische Boeken B.V., Deventer/ Antwerpen 1988, ISBN 90-201-2111-1
- (in German) Horst Völz: Basicode mit Programmen auf Schallplatte für Heimcomputer. Verlag Technik, Berlin 1990, ISBN 3-341-00895-0
External links
- (in Dutch) Official Dutch Hobbyscoop-site, the original development group of BASICODE
- BASICODE: an example of Dutch computer folklore - Historical information
- (in German) BasiCode – Software für alle - Information about history and programming
- downloadable tape images downloads are with permission of Hobbyscoop
- A collection of BASICODE programs by various authors Various BASICODE programs