BASIC Programming

Last updated

BASIC Programming
BASIC Programming Cover Art.jpg
Developer(s) Atari, Inc.
Publisher(s) Atari, Inc.
Designer(s) Warren Robinett [1]
Platform(s) Atari 2600
Release1979

BASIC Programming is an Atari Video Computer System (later called the Atari 2600) cartridge that teaches simple computer programming using a dialect of BASIC. Written by Warren Robinett and released by Atari, Inc. in 1979, this BASIC interpreter is one of a few non-game cartridges for the console. The Atari VCS's RAM size of 128 bytes restricts the possibilities for writing programs.

Contents

Details

Main display Basicprogramming.png
Main display

The BASIC Programming display is divided into six regions:

Input is given through two Atari keypad controllers, which came with special overlays to show how to type the different commands and letters. [2] Programs are restricted to 64 characters in size and normally 9 lines of code, limiting the programs that can be written (users can disable all windows except Program and keep selecting "New Line" until 11 lines of code are present).

Language features

VCS BASIC supports the following keywords: [3]

Unlike most BASIC implementations of the time:

Special variable names:

The language supports 26 unsigned integer variables A to Z. VCS BASIC supports integers from 0 to 99. Math operations wrap, so 99+1 becomes 0, 99+2 becomes 1, etc.

Sample code

The following example of a Pong game is provided.

1 Hor2←2+Key 2 <syntaxhighlight lang="cbmbas" class="" id="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">IfVer1>90ThenVer1←88</syntaxhighlight> 3 <syntaxhighlight lang="cbmbas" class="" id="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">IfHit</syntaxhighlight><syntaxhighlight lang="cbmbas" class="" id="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">ThenVer1←9</syntaxhighlight> 4 <syntaxhighlight lang="cbmbas" class="" id="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">Ver1←Ver1+IfVer1</syntaxhighlight>[[Modulo operation|Mod]]2<syntaxhighlight lang="cbmbas" class="" id="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">Then8</syntaxhighlight><syntaxhighlight lang="monkey" class="" id="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">Else</syntaxhighlight>92 5 Hor1←Hor1+7 6 <syntaxhighlight lang="cbmbas" class="" id="" style="background:none; border:none; color:inherit; padding: 0px 0px;" inline="1">Goto1</syntaxhighlight>

See also

Related Research Articles

<span class="mw-page-title-main">Atari 2600</span> Home video game console

The Atari 2600, initially branded as the Atari Video Computer System from its release until November 1982, is a home video game console developed and produced by Atari, Inc. Released in September 1977, it popularized microprocessor-based hardware and games stored on swappable ROM cartridges, a format first used with the Fairchild Channel F in 1976. The VCS was bundled with two joystick controllers, a conjoined pair of paddle controllers, and a game cartridge—initially Combat and later Pac-Man.

<span class="mw-page-title-main">Atari 5200</span> Home video game console

The Atari 5200 SuperSystem or simply Atari 5200 is a home video game console introduced in 1982 by Atari, Inc. as a higher-end complement for the popular Atari Video Computer System. The VCS was renamed to the Atari 2600 at the time of the 5200's launch. Created to compete with Intellivision, the 5200 wound up a direct competitor of ColecoVision shortly after its release. While the Coleco system shipped with the first home version of Nintendo's Donkey Kong, the 5200 included the 1978 arcade game Super Breakout which had already appeared on the Atari 8-bit family and Atari VCS in 1979 and 1981 respectively.

<span class="mw-page-title-main">Intellivision</span> Home video game console

The Intellivision is a home video game console released by Mattel Electronics in 1979. The name is a portmanteau of "intelligent television". Development began in 1977, the same year as the launch of its main competitor, the Atari 2600. In 1984, Mattel sold its video game assets to a former Mattel Electronics executive and investors, eventually becoming INTV Corporation. Game development ran from 1978 to 1990 when the Intellivision was discontinued. From 1980 to 1983, more than 3 million consoles were sold.

<span class="mw-page-title-main">Bally Astrocade</span>

The BallyAstrocade is a second-generation home video game console and simple computer system designed by a team at Midway, at that time the videogame division of Bally. It was originally announced as the "Bally Home Library Computer" in October 1977 and initially made available for mail order in December 1977. But due to production delays, the units were first released to stores in April 1978 and its branding changed to "Bally Professional Arcade". It was marketed only for a limited time before Bally decided to exit the market. The rights were later picked up by a third-party company, who re-released it and sold it until around 1984. The Astrocade is particularly notable for its very powerful graphics capabilities for the time of release, and for the difficulty in accessing those capabilities.

Atari BASIC

Atari BASIC is an interpreter for the BASIC programming language that shipped with the Atari 8-bit family of 6502-based home computers. Unlike most American BASICs of the home computer era, Atari BASIC is not a derivative of Microsoft BASIC and differs in significant ways. It includes keywords for Atari-specific features and lacks support for string arrays, for example.

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 version of BASIC published by Microsoft as well as the first high-level programming language available for the Altair 8800 microcomputer.

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 version of BASIC used by many early home computer owners.

<i>Adventure</i> (1980 video game) Landmark Atari video game from 1980

Adventure is a video game developed by Warren Robinett for the Atari Video Computer System and released in 1980 by Atari, Inc. The player controls a square avatar whose quest is to explore an open-ended environment to find a magical chalice and return it to the golden castle. The game world is populated by roaming enemies: three dragons that can eat the avatar and a bat that randomly steals and hides items around the game world. Adventure introduced new elements to console games, including a play area spanning multiple screens and enemies that continue to move when offscreen.

<span class="mw-page-title-main">Warren Robinett</span> Software designer

Joseph Warren Robinett Jr. is a designer of interactive computer graphics software, notable as the developer of the Atari 2600's Adventure — the first graphical adventure video game — and as a founder of The Learning Company, where he designed Rocky's Boots and Robot Odyssey. More recently he has worked on virtual reality projects.

The Atari Microsoft BASIC and Atari Microsoft BASIC II variants of the 6502-version of Microsoft BASIC ported to the Atari 8-bit machines. The first version, released 1981, required 32 KB of RAM and was supplied on floppy disk. The second version, released the next year, had most of the code on a ROM cartridge with additional functions on an optional floppy.

<span class="mw-page-title-main">Television Interface Adaptor</span> Video/audio/input chip of the Atari 2600

The Television Interface Adaptor (TIA) is the custom computer chip, along with a variant of the MOS Technology 6502 constituting the heart of the 1977 Atari Video Computer System game console. The TIA generates the screen display, sound effects, and reads the controllers. At the time the Atari VCS was designed, even small amounts of RAM were expensive. The chip was designed around not having a frame buffer, instead requiring detailed programming to create even a simple display.

<span class="mw-page-title-main">Atari Flashback series</span> Video game console series

The Atari Flashback series are a line of dedicated video game consoles designed, produced, published and marketed by AtGames under license from Atari SA. The Flashback consoles are "plug-and-play" versions of the Atari 2600 console. They contain built-in games rather than using the ROM cartridges utilized by the 2600. Most of the games are classics that were previously released for the 2600, although some Flashback consoles include previously unreleased prototype games as well.

The Atari 2700 was a prototype home video game console that was developed by Atari, Inc. to be a wirelessly controlled version of Atari's popular Atari 2600 system. Intended for release in 1981, the 2700 was one of several planned follow-ups to the 2600, but the system was never put into full production. While It is unclear how many of these systems exist, former Atari employee Dan Kramer has stated that at least 12 consoles were made, plus extra controllers.

Simons BASIC

Simons' BASIC is an extension to BASIC 2.0 for the Commodore 64 home computer. Written by British programmer David Simons in 1983, who was 16 years old at the time, it was distributed by Commodore as a cartridge.

<span class="mw-page-title-main">CompuMate</span> Home computer peripheral

The CompuMate SV010 was a home computer peripheral manufactured by Spectravideo International for the Atari 2600 home video game console. It was released on 6 January 1983 at the Winter Consumer Electronics Show in Las Vegas, Nevada.

<i>Slot Racers</i> 1978 video game

Slot Racers is a video game for the Atari VCS published by Atari, Inc. in 1978. It was the first game written by Warren Robinett, who went on to create one of Atari's most successful games for the 2600, Adventure.

<i>A Game of Concentration</i> 1978 video game

A Game of Concentration is a video game developed by Atari, Inc. and released in 1978 for the Atari VCS. It was programmed by Jim Huether, and is a version of the classic memory game. It was one of a handful of games that used Atari's keypad controllers.

<span class="mw-page-title-main">Atari 2600 homebrew</span> Video game genre

Atari 2600 homebrew is a term describing hobbyist-developed games for the Atari 2600 video game console. The first such game was written in 1995, and more than 100 have been released since then. The majority of games are unlicensed clones of games for other platforms, and many were written for the technical challenge. There are also ROM hacks and some original games. Several games have received attention outside the hobbyist community. Some have been included in a game anthology by Activision.

BASIC 1.0 is the standard BASIC language for Thomson computers, which is the reference for the entire range. This is an implementation of Microsoft BASIC (BASIC-69). It was used to introduce children from France to programming in the 1980s. Three languages were mainly taught: LSE, BASIC and LOGO. School textbooks programs were given in BASIC 1.0 for Thomson and sometimes in ExelBasic for the Exelvision EXL 100.

BASIC interpreter Interpreter that enables users to enter and run programs in the BASIC language

A BASIC interpreter is an interpreter that enables users to enter and run programs in the BASIC language and was, for the first part of the microcomputer era, the default application that computers would launch. Users were expected to use the BASIC interpreter to type in programs or to load programs from storage.

References

  1. Interview:Warren Robinett, By James Hague, Halcyon Days, "How long did it take to write?...I had Adventure sort of done in the fall of 1978, but I wasn't satisfied. I sort of put it on the shelf for the next six months while I did the BASIC Programming cartridge, and finished them both simultaneously, in June 1979."
  2. Controllers - Atari Keypad, Archived 15 June 2015 at the Wayback Machine Atari KeypadSystem: Atari 2600, Model Number: CX50, Sold in pairs, functionally identical to the Kid's Controller and the Video Touch Pad. Included overlays with commands, meant to be used with Basic Programming.
  3. BASIC Programming: Atari Game Program Instructions. Sunnyvale, CA: Atari, Inc. 1979.