128 COMMAND CHART BASIC 7.0 BASIC 7.0 Keywords ================== *Preliminary list of the Commodore 128 computer keywords. *Taken from a preliminary description of BASIC 7.0. *Commodore Business Machines may have made small changes from this list! Command Description: APPEND - Direct DOS command, append a file AUTO - Automatic line numbering BACKUP - Direct DOS command, backup disk on dual drive. BEGIN/BEND - extension of the Boolean IF/THEN logic for more than 1 line. BLOAD - Binary Load to any memory location BOOT - Load and execute program BSAVE - Binary Save from any memory location COLLECT - DOS Validate command CONCAT - DOS Concatenate command CMD - Redirect screen output CONT - Continue COPY - Direct DOS Copy command DELETE - Deletes line numbers or blocks of lines from a program. DIRECTORY - DOS Directory displayed DLOAD - Load from Disk DSAVE - Save to Disk DVERIFY - Verify Disk File HEADER - DOS command to format diskette HELP - shows line where error occurred KEY - Define or list Function Keys LIST - List BASIC program LOAD - Load program from specified device MONITOR - enter the Commodore 128 Machine Language Monitor MOVESHAPE - NEW - clear memory PLAY - executes music like PRINT format RENAME - Direct DOS command to rename a file RENUMBER - renumber lines of BASIC program RUN - execute BASIC program RWINDOW - function that returns specific information about the current console display enviornment SAVE - save program to specified device SCRATCH - Direct DOS command to scratch a file SLEEP - * *(I need some of THAT!) SOUND - sound output command VERIFY - verify program from specified device WIDTH - sets widths of lines drawn using BASIC's graphiic commands WINDOW - defines window Statement Description: BANK - alter bank BOX - draw a box CHAR - display characters at specified screen location CIRCLE - draws a circle CLOSE - closes file CLR - clear program variables COLLISION - sprite collision handling definition COLOR - defines colors for background, foreground, border, multicolor, etc DATA - define data to be used in program DCLEAR - DOS command to clear all open channels on disk drive DCLOSE - closes disk file(s) DEF FN - Define Function for complex calculations DIM - Dimensioning an Array DO/LOOP/WHILE/UNTIL/EXIT - powerful program looop definition and control DOPEN - open disk file DRAW - Draw lines END - end of program ENVELOPE - define ADSR FILTER - define sound filter FOR/TO/STEP/NEXT - program loop definition and control GET - Get character Input from the keyboard-no waiting GETKEY - Get character from keyboard-while waiting GET# - Get character from a previously opened device or file GOSUB - execute subroutine GOTO/GO TO - transfer program execution to specified line number GRAPHIC - select graphic mode IF/THEN/ELSE - conditional program execution INPUT - proompt on screen for input from keyboard INPUT# - Input data from file LET - infrequently used keyword used with assignment statements LOCATE - position graphics pixel cursor on screen MOVSPR - Move or locate sprite ON - conditional branching OPEN - open file for I/O PAINT - fill area with color POKE - change data in RAM PRINT - output to text screen PRINT# - output to files PRINT USING- output using format PUDEF - redefine symbols in PRINT USING statements READ - read data from DATA statements RECORD - adjust relative file pointers REM - add explantory text to program listing RESTORE - reposition READ pointer at specified DATA statement! RESUME - define program execution after TRAP RETURN - return from subroutine RREG - define register values on return from SYS call SCALE - alter scaling in graphics mode SCNCLR - clear screen SPRITE - set up sprite attributes SSHAPE/GSHAPE - save/retrive shapes using strings STOP - halt program execution SYS - execute machine language subroutine at specified address TEMPO - define note duration TRAP - handle error processing TRON - BASIC program TRACE enable TROFF - BASIC program TRACE dissable VOL - define output level of sound WAIT - halt program execcutions until data condition satisfied Function Description: ABS - absolute value ASC - returns CBM ASCII code for characters ATN - returns angle whose tangent is X radians BUMP - returns sprite collision information CHR$ - returns ASCII character for specified CBM ASCII code COS - returns cosine for angle of X radians DEC - returns decimal value of hexadecimal number string ERR$ - returns string describing error condition EXP - return value of an approximation of e (2.7182713) raised to the X power FNxx - returns value from user defined function FRE - returns number of unused bytes in memory HEX$ - returns hexadecimal number string from decimal number INSTR - returns position of string l in string 2 INT - returns integer form of floating point value JOY - returns position of joystick and fire button state LEFT$ - returns N leftmost characters of a string LEN - returns length of string LOG - returns natural log MID$ - return substring froma larger string PEEK - returns content at specified memory location PEN - returns X and Y coordinates of light pen POS - returns character cursor position on line POT - returns value of game-paddle potentiometer RND - returns random number RCLR - returns color of color source RDOT - returns current position or color of pixel cursor RGR - returns current graphic mode RIGHT$ - returns substring from rightmost end of a string RSPRITE - returns sprite attributes RSPCOLOR - check what sprite multi-color values last set. RSPPOS - check speed and position of sprite SGN - return sign of argument SIN - return sine of argument SPC - adds space characters to output SQR - returns square root of argument STR$ - returns string representatin of number TAB - move cursor to tab position in present statement TAN - returns tangent USR - call user defined subprogram VAL - returns numeric value of a number string XOR - provides the exclusive-or of the argument Reserved Variable Names: DS - Disk Status error number DS$ - Disk Status error number and message ER - used in error trapping routine ERR$ - used in error trapping routine EL - used in error trapping routine ST - status variable for I/O devices TI - real time clock TI$ - real time clock Operators: The standard BASIC operators are used here, too. ARITHMETIC + - * / ^ Relational = < > <= >= <> Logical AND OR NOT Docs By:DOC'S "R" US BBS 914-668-3664 OVER 6 MEGS ONLINE!!!