BASIC Programming | |
Developer: | Atari, Inc. |
Publisher: | Atari, Inc. |
Designer: | Warren Robinett[1] |
Released: | 1979 |
Platforms: | Atari 2600 |
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.
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).
VCS BASIC supports the following keywords:[3]
Print
Goto
, If-Then-Else
Clear
Hit
, Key
+ - × ÷ Mod
< > =
Unlike most BASIC implementations of the time:
A←A+1
.Note←APrintA
.If
statement can be used as a function, returning a value: {{codett|2=cbmbas|Ver1←Ver1+IfVer1}}[[Modulo operation|Mod]]2{{codett|2=cbmbas|Then8}}{{codett|2=monkey|Else}}92
If
statements can take an Else
clause.Special variable names:
Note
sounds a musical note, assigned numbers from 0 to 7Note
are implicitly assigned modulus 8, thus 8 becomes 0, 9 becomes 1, etc.Hor1
, Hor2
- the horizontal coordinate of one of two squaresVer1
, Ver2
- the vertical coordinate of one of two squaresThe 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.
The following example of a Pong game is provided.