Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Atari BASIC
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Differences from Microsoft BASIC== *Syntax is checked and errors highlighted immediately on line entry. *Variable names can be of arbitrary length, and all characters are significant. *The following keywords are not in Atari BASIC: <code>INKEY$</code>, <code>CLS</code>,<code>DEF FN</code>, <code>SPC</code>, <code>TAB</code>, <code>ELSE</code>. *All arrays must be dimensioned prior to use while Microsoft BASIC defaults an array to 10 elements if not dimensioned. *String variables are treated as character arrays and must be dimensioned before use. MS BASIC stores strings on the [[heap (programming)|heap]] and sometimes pauses for [[Garbage collection (computer science)|garbage collection]]. *The functions <code>LEFT$</code>, <code>MID$</code>, and <code>RIGHT$</code> are replaced by string indexing. *There is not an operator for string concatenation. *There are no arrays of strings. *There is no support for integer variables. *There are no bitwise operators. *<code>INPUT</code> does not allow a prompt. *<code>PRINT</code> may be abbreviated as <code>?</code> as in Microsoft BASIC, but Atari BASIC does not tokenize it into <code>PRINT</code>. It remains a question mark. *The target of <code>GOTO</code> and <code>GOSUB</code> can be a variable or expression. *<code>RESTORE</code> may take a numeric constant, variable, or expression as a parameter, causing the next <code>READ</code> to begin from the specified line number *<code>FOR..NEXT</code> loops in Atari BASIC must have a variable name referenced by the <code>NEXT</code> statement while Microsoft BASIC does not require it. *Multiple variables are not permitted with <code>NEXT</code> statements as they are in Microsoft BASIC (e.g., <code>NEXT X,Y</code>). *<code>LIST</code> uses a comma to separate a range instead of a minus sign.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)