You are on page 1of 12
ATARI BASIC ATARI BASIC ATARI BASIC FOR EXPERIENCED PROGRAMMERS. Learning BASIC is like learning any other language—it takes a little time and effort, but the rewards are great. This guide provides information about ATARI BASIC—a popular, powerful dialect— for those who are already familiar with the BASIC programming language. This guide is intended for reference use only. It does not present comprehensive programming examples or tutorial information for the beginner. Both beginning and experienced pro- grammers should refer to the following sources for more information: ATARI BASIC by Albrecht, Finkel, and Brown: ATARI BASIC REFERENCE MANUAL; and INSIDE ATARI BASIC by Bill Carris. 4 INDEX COMMAND ABS ADR AND |. ASC AIN BYE CLOAD CHARS clo Close CLR COLOR COM CONT cos SAVE DATA DEG DIM Dos DRAWIO EDITING. END. ENTER ERROR CODES EXP. FOR FRE ore eet GosuB GoTo GRAPHICS. LPRINT NEW NEXT NOT NOTE ON ‘OPEN OR PAGE NUMBER OPERATORS 9 10 4 10 10 PADDLE . PEEK PLOT POINT POKE PoP. POSITION PRINT PTRIG PUT... RAD. READ REM. RESTORE RETURN RND RUN SAVE SETCOLOR SGN SIN 1.) SOUND SR STATUS | STICK STRIG STOP STRS . THEN To TRAP USR VAL SPECIAL FUNCTION KEYS OPERATOR PRECEDENCE Operations within the innermost set of parentheses are performed first and pro: ceed out to the next level. When sets of Parentheses are enclosed in another set, they are said to be “nested”. Operations con the same nesting level are performed in the following order HIGHEST PRECEDENCE TO LOWEST PRECEDENCE Relolionel operators ded in sting expressions hhave the some precedence and art perlarmed Mom elites Unory minus (denotes 6 negative number Exponentiation. Xai Multiplication and division have the some precedence level ond ore performad fram lef to Fight ‘Addition and subtraction hove the some Relationol operations in numeric expressions have the some precedence level Irom let to Fight. Not Unary operator AND Logical AND. or Logical OR jance level ond ore performed from left to (Allowable abbreviation in parenthesis) The following words can be used os pro- gram statements, or os direct commands by typing them without a line number and pressing RETURN. These words may not be used as variable names, SYSTEM CONTROL BYE (B.) — Exits from BASIC to SELF TEST MODE DOS — Displays DOS menu (use with o disk drive, only) CSAVE (CS.) — Saves program file to Cassette. CLOAD — Loads program file from Cassette SAVE (S.) — Saves a BASIC program to ‘on output device Bx: SAVE "D:MYFILE.BAS LOAD (LO.) — Loads @ program file from fan input device. Ex: LOAD "D-MYFILE.BAS' UST (L.) — Sends o program list to screen ‘or output device Ex: LIST (Lists whole program) LIST 10 (iss fine 10 on screen) UST 10, 20 (lists everything from line 10 te line 20), UST "P:" (lst to printer) UST “P.", 10, 20 (lines 10-20 to printer) LIST "D:MYFILE.ST" (list 10 a disk file) LIST “D-MYFILE.LST"10,20 (list 10-20, to a disk file) LIST "C> (list to cassette) ENTER (E.) — Enters aprogram from list input device. Bx ENTER "C ENTER "D-MYFILELST Note: A program that has alredy been loaded will be overwritten, NEW — Cleors program from memory. RUN — Begins execution of a BASIC program. Program may be in memory or loaded from disk or tape. (Initializes variables to zero and undimensions orroys tnd strings) Ex: RUN (executes program in memory) RUN "D:MYFILE.BAS" (LOADs pro

You might also like