Encyclopedia > Atari BASIC programming language

  Article Content

Atari BASIC

Redirected from Atari BASIC programming language

Atari BASIC was a ROM resident BASIC interpreter for the Atari 8-bit family of 6502-based home computers. The interpreter was originally published on an 8K cartridge; on later XL and XE model computers it was built in, and would load by default when the machines were booted. At least three versions were released, although there were no significant differences between them other than varying levels of bug elimination.

Atari had originally intended to use the already-standard Microsoft BASIC, but had trouble adapting the Intel 8080 code to fit into an 8k ROM in the less dense 6502 code. The result was a rather different version of BASIC, produced by a team that had recently completed an extended BASIC for the CP/M world. Atari also packaged a diskette-based version of Microsoft BASIC, but it saw little use.

Atari BASIC differs from Microsoft-style BASICs primarily in the way it handles strings–it doesn't have any. Instead it used the Data General-like system of using character arrays, similar to the way the C programming language constructs strings. While this is in theory much faster than MS's solution, it was also much harder to port BASIC programs to the machine. Worse yet, character arrays in Atari BASIC were single-dimensional only, meaning that if a program used string arrays it essentially had to be completely re-designed for the Atari.

On the upside they were easy to work with, using "slicing" commands. A$ referred to the entire string, whereas A$(4,6) "sliced" out the three characters, 4, 5 and 6. In general this would have been a better solution than the MS MID$ solution, if not for the fact that they were 0-indexed while MS strings were 1-indexed.

Atari BASIC was also very slow, being outperformed by most other BASICs of the era. All of these problems were fixable, but it appears Atari was still a videogame company at heart, and none of the three versions addressed any of these issues.

Most Atari BASIC statements may be abbreviated when entered. They appear unabbreviated in program listings because the keywords were stored tokenized.

External links



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Digital Rights Management

... players such as a digital output which could be used to extract a high-quality digital copy of the movie. Since the only hardware capable of decoding the movie was ...

 
 
 
This page was created in 29 ms