Title: BASIC KEYWORDS II LEFT$(stringexpression,length) Returns the length characters of stringexpression. LEN(stringexpression) Returns the number of characters in stringexpression. LETvariable=expression Assign value of expression to variable. Variable must be of the same data type as expression (that is, numeric or string). The word LET is optional. LOG(numericexpression) Returns the natural logarithm (base "e") of numericexpression. Numericexpression must be greater than zero. MENU Exits BASIC and returns you to the Model 100 menu. Closes any open files. MID$(stringexpression,position,length) Returns length characters from stringexpression starting at position. MID$(stringexpression1,position,length)=stringexpression2 Replaces characters of stringexpression1 starting at position with stringexpression2. Length and position are numeric expressions. Length is optional and if present is ignored. NEW Erases the current program, sets numeric variables equal to zero, and sets string variables equal to null. ONERRORGOTOlinenumber Defines an error trapping interrupt. ONTIME$="time"GOSUBlinenumber Defines an interrupt for a clock condition. Time is a string expression in the form HH:MM:SS. ONnumericexpressionGOTOlinenumberlist Evaluates numericexpression to an integer n, and then branches to the nth linenumber in the list. ONnumericexpressionGOSUBlinenumberlist Evaluates numericexpression to an integer n, and then calls the subroutine beginning at the nth linenumber in the list. OUTportnumber,bytevalue Output bytevalue to the CPU portnumber. PEEK(memoryaddress) Returns the byte value stored at memoryaddress. POKEmemoryaddress,bytevalue Loads memoryaddress with bytevalue. POWER(numericexpression) Sets the automatic power-down period. Numericexpression has a range of 10 to 255. The Model 100 will automatically turn off after a period of numericexpression times 0.1 minutes if you are neither running a program nor entering commands. POWERCONT Disables the automatic power down feature of the Model 100. POWEROFF, RESUME Turns off the power to the Model 100 immediately. If RESUME is present, upon turning the power back on, the Model 100 resumes execution of the program at the statement following the POWEROFF. RESUME, if not present, then the Model 100 returns to the menu upon power up. READvariablelist Reads an appropriate number of values from a DATA statement and stores the values in the variables of variablelist. REMcommentstatement Signifies to the BASIC interpreter that the reminder of the line as comment. You may abbreviate REM with an apostrophe. RESTORElinenumber Resets the DATA statement pointer to the first item in the DATA statements on linenumber so that a READ command can access the same values more than once. RESUMElinenumber Ends an error handling routine by branching to linenumber where BASIC begins normal execution. If linenumber is null or 0, then BASIC returns to the line which caused the error. RETURN Ends a subroutine by branching back to the command immediately following the corresponding GOSUB. RIGHT$(stringexpression,length) Returns the right most length characters of stringexpression. RND(numericexpression) Returns a pseudo-random number between 0 and 1. If numericexpression is non-zero, then RND returns a new random number. If numericexpression equals 0, then RND returns the last random number generated. RUNlinenumber Clears all variables and executes the current program starting at the linenumber, which is optional. If linenumber is omitted, BASIC begins execution at the first line of the program. SGN(numericexpression) Returns a -1 for negative 0 for zero, and 1 for positive values of numericexpression. SIN(numericexpression) Returns the trigonometric sine of numericexpression. The numericexpression must be in radians. SPACE$ Returns a string of length spaces. SQR(numericexpression) Returns the square root of numericexpression. STOP Stops execution of a BASIC program at some point other than the physical end. STR$(numericexpression) Converts numeric expression to its stringrepresentation. STRING$(length,character) Returns a string of the given length composed of character. Length may range from 0 to 155, character is either a string expression or numeric expression. If it is a string expression, only the first character of the string is duplicated. If it is a numeric expression, it must evaluate to a number between 0 and 255. TAN(numericexpression) Returns the tangent of numericexpression, which must be expressed in radians. TIMES$ Keeps track of the current time, in the form of a string variable. You may access it like any string variable. TIMEONorOFForSTOP Enables or disables ON TIME$ interrupting. VAL(stringexpression) Converts stringexpression to a numeric representation of the string. If stringexpression contains non-numeric characters, VAL returns only the value of the leading number, if any. VARPTR(variablename) Returns the memory address of variablename.