|
|
BASIC StatementsBASIC StatementsCLEARn Reserves n bytes of string storage space (0-3142). Initializes all variables. CLEAR CLEAR 75 CLEAR O CLOAD Loads a BASIC program file from cassette. Only the first 8 characters of the file name are used. An optional name may be specified. CLOAD CLOAD "MIXIT" CLOAD* Loads numeric data into an array from cassette file which has been created using CSAVE*. Array name must be specified. CLOAD*G,"TOMFILE" CLOADM Loads a machine language program file from cassette. Only the first 8 characters of the file name are used. An optional name or offset may be specified. CLOADM CLOADM "DEBUG" CLOADM "DEBUG",1024 CLS(c) Clears the display to the color (c) specified. if c is omitted, green is used. Colors:
CONT Continues execution of program after [BREAK] or STOP. CONT
CSAVE Stores resident program on cassette tape. Only the first 8 characters of the file name are used. CSAVE CSAVE "MIXIT" CSAVE* Saves the contents of a numeric array on cassette tape for later use by CLOAD*. Array name must be specified. CSAVE*G, "ASHER"
DATA Stores data to be accessed by a READ statement. DATA "LINCOLN, A", 1861, ILLINOIS DIM Dimensions one or more arrays. DIM R(65), W(40) DIM AR$(8,25) DIM L(3,18,5)
END Ends program execution. END EXEC Executes machine language. Address is not required after a CLOADM. EXEC EXEC 2345
FOR ... TO ... STEP/NEXT Opens program loop. FOR I = 1 to 8 (...) NEXT I FOR C = 0 to 5 STEP 2 (...) NEXT C
GOSUB Transfers program control to the specified subroutine. GOSUB 750
GOTO Transfers program control to the specified line. GOTO 180 IF ... THEN Tests conditional expression. IF P = 0 THEN 200 IF N = 3 THEN GOSUB 500 INPUT Inputs data from the keyboard. INPUT X INPUT L,M,N INPUT "NEXT"; N
LIST Lists program lines to the video display. LIST LIST 50-85
LLIST Lists program lines to the line printer. LLIST LLIST 50-
LPRINT Prints an item or list of items on the printer. LPRINT "TESTl"
NEW Erases program from memory; initializes all variables. NEW
OFF Reserved but unused.
ON ... GOSUB Multi-way branch to specified subroutines. ON V GOSUB 50, 100, 150, 200
ON ... GOTO Multi-way branch to specified lines. ON X GOTO 190, 200, 210
POKE Puts a value into a memory location POKE X, Y POKE 23456,123
PRINT Prints an item or list of items on the display at current cursor position. PRINT X + Y PRINT "U.S.A."
PRINT@n Prints beginning at n, n = 0-511. PRINT @238, "CENTER"
PRINT TAB Moves the cursor to specified column position. PRINT TAB(5) "NAME"
READ Reads value(s) from a DATA statement. READ T READ S$ READ NM$, AGE
REM Remark; instructs computer to ignore rest of line. REM PLACE COMMENTS HERE
RESET(x,y) Turns off graphics block at specified location. x(horizontal) = 0-63. y(vertical) = 0-31 RESET(21,30) RESET(L1,L2)
RESTORE Resets data pointer to first item in the first data line. RESTORE
RETURN Returns from subroutine to next statement after GOSUB. RETURN
RUN Executes resident program or portion of it. RUN RUN 150
SET(x,y,c) Turns on graphics cell to specified color (C) at specified locations x(horizontal) = 0-63; y(vertical) = 0-31. See CLS for colors. If c = 0 cell is unchanged or set green (if in character mode.) SET(10,0,1) SET(L1,L2,C)
SKIPF Positions cassette tape at end of next file. SKIPF"PROGRAM" SKIPF
SOUND (f,d) Sounds the frequency (f 1-255) and duration (d = 1-255)specified. SOUND 1, 200 SOUND 128, 5
STOP Stops execution of a program. STOP |