num EOF(device number) returns 0 if the file has data, or -1 if at the end of the file INKEY$ returns a character if a key on the keyboard has been pressed, or null if nothing is pressed INT(num) returns the integer portion of num INSTR(startpos,search str,target str) searches for the first string, in the target str. startpos is optional. JOYSTK(num) returns the position of the joystick axis (0-3) with a value from 0 to 63 LEFT$(str,num) returns the first ("left") num characters of string str LEN(str) returns the length (in characters) of string str MEM returns the available free memory in bytes MID$(str,start num,length num) returns a sub-string of string str beginning at position start num and length num characters long. Can also reassign by adding ="newvalue" PEEK(num) returns the value of the memory location num (0-65535) POINT(x num,y num) returns the color of the semigraphics dot at position x numm (0-63) and y num (0-31) RIGHT$(str,position num) returns the end ("right") portion of string str beginning at character position num RND(number) returns a random number (integer) between 1 and num SGN(num) returns the sign of a number num, 1 if positive, -1 if negative, 0 if 0 SIN(num) returns the sine of num in radians STR$(num) returns a string of the number num USR(num) calls a machine language subroutine whose address is stored in memory locations 275 and 276. num is passed to the routine, and a return value is assigned when the routine is done Commands AUDIO [ON|OFF] Connects or disconnects cassette audio from the TV sound CLEAR variable space[,highest memory location] reserves memory for string variables, and optionally, a machine language program CLOAD ["name"] loads BASIC program from cassette. If no name is specified, the next program is loaded CLOADM ["name"] loads machine language program from cassette. If no name is specified, the next program is loaded CLOSE [device number] closes a device (in Color BASIC this can only be #-1, the cassette) CLS(num) clears the screen. An optional color num (0-8) can be specified CONT continues a program after pressing BREAK or a STOP statement CSAVE ["name"] saves a BASIC program to cassette with optional name DATA var,var,var... stores data in a BASIC program for retrieval with the READ command DIM variable(dimension[,dimension 2,...] dimensions an array and reserves memory space for it END indicates the end of a BASIC program EXEC [memory address] executes the