home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.whtech.com
/
ftp.whtech.com.tar
/
ftp.whtech.com
/
club100
/
ref
/
ba01c1.do
< prev
next >
Wrap
Text File
|
2006-10-19
|
5KB
|
174 lines
Title: BASIC KEYWORDS I
ABS(numericexpression)
Returns the absolute value of numericexpression.
ASC(stringexpression)
Returns the ASCII code for the first character of stringexpression.
ATN(numericexpression)
Returns the arctangent (in radians) of numericexpression.
CALLaddress,expression1,expression2
Calls a machine level subroutine beginning at address. Upon entry to the
subroutine, the A register contains the value of expression1 and the HL
register contains the value of expression2.
CDBL(numericexpression)
Converts the value of numericexpression to a double-precision number.
CHR$(numericexpression)
Returns the ASCII character for the value of numericexpression.
CINT(numericexpression)
Returns the largest integer not greater than the numericexpression.
CLEARstringspace,highmemory
Clears the values in all numeric and string variables, closes all open files,
allocates stringspace bytes for string storage, and sets the end of BASIC
memory to highmemory.
CONT
Resumes execution of a program after you have pressed SHIFT/BREAK or else
after BASIC has encountered a STOP command in the program.
COS(numericexpression)
Returns the cosine of the radian angle given by numericexpression.
CSNG(numericexpression)
Returns the single-precision form of numericexpression.
DATAconstantlist
Defines a set of constants (numeric and/or string) to be accessed by a READ
command.
DATE$
Keeps track of the current date, in string from. You may access DATE$ like
any string variable.
DAY$
Keeps track of the current day of the week, in string form. You may access
DAY$ like any string variable.
DEFDBLletterlist
Defines all of the variables which begin with the letters in letterlist to
be double precision variables. Letterlist consists of individual letters
and/or letter ranges of the form letter1-letter2.
DEFENT
Defines all of the variables which begin with the letters in letterlist to be
integer variables. Letterlist consists of individual letters and/or letter
ranges of the form letter1-letter2.
DEFSNGletterlist
Defines all of the variables which begin with the letters in letterlist to
be single precision variables. Letterlist consists of individual letters
and/or letter ranges of the form letter1-letter2.
DEFSTRletterlist
Defines all of the variables which begin with the letters in letterlist to
be string variables. Letterlist consists of individual letters and/or
letter ranges of the form letter1-letter2.
DIMvariablename(dimension)list
Defines variablename as an array with the given dimensions. Dimension is a
list of one or more numeric expressions, defining the "length", "width", and
so on, for the array.
EDITlinenumber range
Enter text editing mode using the given lines.
END
Terminates execution of the BASIC program.
ERL
Returns the line number of the last error.
ERR
Returns the error code number of the last error.
ERRORnumericexpression
Simulates the error specified by numericexpression.
EXP(numericexpression)
Returns the exponential (antilog) of numericexpression.
FIX(numericexpression)
Returns the whole number portion of numericexpression.
FORcountervariable=initialvalueTOfinalvalueSTEPincrement
...NEXTcountervariable.
Executes the commands between the FOR command and the NEXT command
repetitively, varying countervariable from initialvalue to finalvalue, adding
increment to it each time BASIC ends the loop. (see NEXT)
FRE(expression)
Returns the current amount of unused numeric memory in bytes when expression
is numeric and the current total amount of unused string space when
expression is string-type.
GOSUB ...RETURN
Transfers program control to the subroutine beginning at line number.
(see RETURN)
GOTOlinenumber
Branches program control to the specified linenumber.
HIMEM
Returns the top address of memory available to BASIC.
IF relational-or-logicalexpression THEN command(s)1 ELSE commands(s)2
Test the logical "truth" of relational or logicalexpression. If the
expression is "true", then BASIC executes command(s)1. If the expression is
"false", BASIC executes command(s)2.
INP(portnumber)
Returns a byte from the specified CPU portnumber.
INSTR(startposition,searchstring,matchstring)
Searches searchstring for the first occurrence of matchstring, beginning at
startposition. If the string is found, INSTR returns the position in the
string where it occurs. If the string isn't found, then INSTR returns a
zero.
INT(numericexpression)
Returns the whole number representation of numeric expression not greater
than numericexpression.
<EOF>