ASC(A$)

The ASC statement will return the ASCII code, a code for representing alphanumeric information, for the FIRST character of the specified string. Brackets must enclose the string specified. Refer to the appendix of THE ASCII CODE TABLE (Page 72). For example, the ASCII decimal value of “X” is 88. If A$=“XAB”, then ASC (A$)=88.

Example:

10X=ASC(“ROY”)

20PRINT X

RUN

CHR$ (N)

This statement works the opposite way as the ASC statement. The CHR$ statement will return the string character which corresponds to the given ASCII code. The argument may be any number from 32 to 127 or any variable expression with an integer value within that range. Brackets must be put around the argument.

Example:

30PRINT CHR$(68)

RUN D

GOSUB...RETURN

Line# GOSUB first line number of subroutine.

Line#

Line#

Line#

Line# first line number of subroutine

Line#

Line# RETURN

The GOSUB command tells the computer to GOTO another line number. After the process has been completed, a RETURN statement is used to send the computer back to the line immediately after the GOSUB. These statements are used to process a series of commands that are frequently used.

56