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
Ver1←Ver1+IfVer1Mod2Then8Else92
Ver1←Ver1+IfVer1
Then8
Else
Special variable names:
Note
Hor1
Hor2
Ver1
Ver2
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.
The following example of a Pong game is provided.
1 Hor2←2+Key 2 IfVer1>90ThenVer1←88 3 IfHitThenVer1←9 4 Ver1←Ver1+IfVer1Mod2Then8Else92 5 Hor1←Hor1+7 6 Goto1
IfVer1>90ThenVer1←88
IfHit
ThenVer1←9
Goto1