This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed. Find sources: "BASIC Programming" – news ·newspapers ·books ·scholar ·JSTOR(October 2017) (Learn how and when to remove this message) |
| BASIC Programming | |
|---|---|
| Developer | Atari, Inc. |
| Publishers | Atari, Inc. |
| Designer | Warren Robinett[2] |
| Platform | Atari 2600 |
| Release | April 1980[1] |
BASIC Programming is an Atari Video Computer System (later called theAtari 2600) cartridge that teaches simple computer programming using a dialect ofBASIC. Written byWarren Robinett and released byAtari, Inc. in 1980, thisBASIC interpreter is one of a few non-game cartridges for the console. The Atari VCS'sRAM size of 128 bytes restricts the possibilities for writing programs.

TheBASIC 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.[3] 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:[4]
PrintGoto,If-Then-ElseClearHit,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:Ver1←Ver1+IfVer1Mod2Then8Else92If statements can take anElse 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 aPong game is provided.
1 Hor2←2+Key2IfVer1>90ThenVer1←883IfHitThenVer1←94Ver1←Ver1+IfVer1Mod2Then8Else925 Hor1←Hor1+76Goto1
How long did it take to write?...I hadAdventure 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 theBASIC Programming cartridge, and finished them both simultaneously, in June 1979.