ArticleslgStudy

computer science

BASIC Programming

BASIC Programming is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand BASIC Programming rather than just read about it. In short: 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 1980, this BASIC interpreter is one of a few non-game cartridges for the console.

BASIC Programming — main illustration
BASIC Programming — illustration

Key takeaways

  • BASIC Programming belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect BASIC Programming to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of BASIC Programming from memory before moving on to harder problems.

Reference excerpt

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 1980, 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.

Details

The BASIC Programming display is divided into six regions:

Program is where instructions are typed. It has a maximum of eleven lines of code. Stack shows temporary results of what the program does. Variables stores the values of any variables that the program is using. Output displays any output values that the program creates. Status shows the amount of available memory remaining. Graphics contains two colored squares that can be manipulated by the program. Input is given through two Atari keypad controllers, which came with special overlays to show how to type the different commands and letters. 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:

Statements: Print Structure: Goto, If-Then-Else Graphics: Clear Functions: Hit, Key Math: + - × ÷ Mod Relational operators: < > = Unlike most BASIC implementations of the time:

VCS BASIC uses ← instead of = for assignment; e.g., A←A+1. Statements can be strung together on a line without a delimiter; e.g., Note←APrintA. An If statement can be used as a function, returning a value: Ver1←Ver1+IfVer1Mod2Then8Else92 If statements can take an Else clause. Special variable names:

Note sounds a musical note, assigned numbers from 0 to 7 Numbers assigned to Note are implicitly assigned modulus 8, thus 8 becomes 0, 9 becomes 1, etc. Hor1, Hor2 - the horizontal coordinate of one of two squares Ver1, Ver2 - the vertical coordinate of one of two squares 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 IfVer1>90ThenVer1←88 3 IfHitThenVer1←9 4 Ver1←Ver1+IfVer1Mod2Then8Else92 5 Hor1←Hor1+7 6 Goto1

See also

List of Atari 2600 games Spectravideo CompuMate Family BASIC

References

External links Compumate FAQ:BASIC PROGRAMME EXAMPLES FOR ATARI 2600 (BASIC PROGRAMMING & CompuMate) at the Wayback Machine (archived 23 January 2004)

Illustrations

BASIC Programming: Main display
Main display

Worked examples

Example 1 — a first encounter with BASIC Programming

Start with the simplest possible case. Write down what BASIC Programming claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to BASIC Programming before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about BASIC Programming ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of BASIC Programming

In research
BASIC Programming appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses BASIC Programming in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
BASIC Programming is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1980 software, Atari 2600, BASIC interpreters, so understanding it makes those chapters shorter.
In everyday life
Look for BASIC Programming outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “BASIC Programming” →

How to study BASIC Programming in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what BASIC Programming means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain BASIC Programming out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is BASIC Programming in simple terms?

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 1980, this BASIC interpreter is one of a few non-game cartridges for the console.

Why does BASIC Programming matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study BASIC Programming?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on BASIC Programming.

Tags

  • 1980 software
  • Atari 2600
  • BASIC interpreters
  • BASIC programming language family
  • Discontinued BASICs
  • Video game development software

Keep exploring