software.wikisort.org - Video_game

Search / Calendar

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.

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

Details


Main display
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



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.





Текст в блоке "Читать" взят с сайта "Википедия" и доступен по лицензии Creative Commons Attribution-ShareAlike; в отдельных случаях могут действовать дополнительные условия.

Другой контент может иметь иную лицензию. Перед использованием материалов сайта WikiSort.org внимательно изучите правила лицензирования конкретных элементов наполнения сайта.

2019-2025
WikiSort.org - проект по пересортировке и дополнению контента Википедии