home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / club100 / ref / ba01c1.do < prev    next >
Text File  |  2006-10-19  |  5KB  |  174 lines

  1.  
  2. Title: BASIC KEYWORDS I
  3.  
  4.  
  5. ABS(numericexpression)
  6.  Returns the absolute value of numericexpression. 
  7.  
  8.  
  9. ASC(stringexpression)
  10.  Returns the ASCII code for the first character of stringexpression. 
  11.  
  12.  
  13. ATN(numericexpression)
  14.  Returns the arctangent (in radians) of numericexpression. 
  15.  
  16.  
  17. CALLaddress,expression1,expression2
  18.  Calls a machine level subroutine beginning at address.  Upon entry to the 
  19.  subroutine, the A register contains the value of expression1 and the HL 
  20.  register contains the value of expression2. 
  21.  
  22.  
  23. CDBL(numericexpression)
  24.  Converts the value of numericexpression to a double-precision number. 
  25.  
  26.  
  27. CHR$(numericexpression)
  28.  Returns the ASCII character for the value of numericexpression. 
  29.  
  30.  
  31. CINT(numericexpression)
  32.  Returns the largest integer not greater than the numericexpression. 
  33.  
  34.  
  35. CLEARstringspace,highmemory
  36.  Clears the values in all numeric and string variables, closes all open files, 
  37.  allocates stringspace bytes for string storage, and sets the end of BASIC 
  38.  memory to highmemory. 
  39.  
  40.  
  41. CONT
  42.  Resumes execution of a program after you have pressed SHIFT/BREAK or else 
  43.  after BASIC has encountered a STOP command in the program. 
  44.  
  45.  
  46. COS(numericexpression)
  47.  Returns the cosine of the radian angle given by numericexpression. 
  48.  
  49.  
  50. CSNG(numericexpression)
  51.  Returns the single-precision form of numericexpression. 
  52.  
  53.  
  54. DATAconstantlist
  55.  Defines a set of constants (numeric and/or string) to be accessed by a READ 
  56.  command. 
  57.  
  58.  
  59. DATE$
  60.  Keeps track of the current date, in string from.  You may access DATE$ like 
  61.  any string variable. 
  62.  
  63.  
  64. DAY$
  65.  Keeps track of the current day of the week, in string form.  You may access 
  66.  DAY$ like any string variable. 
  67.  
  68.  
  69. DEFDBLletterlist
  70.  Defines all of the variables which begin with the letters in letterlist to 
  71.  be double precision variables.  Letterlist consists of individual letters 
  72.  and/or letter ranges of the form letter1-letter2. 
  73.  
  74.  
  75. DEFENT
  76.  Defines all of the variables which begin with the letters in letterlist to be 
  77.  integer variables.  Letterlist consists of individual letters and/or letter 
  78.  ranges of the form letter1-letter2. 
  79.  
  80.  
  81. DEFSNGletterlist
  82.  Defines all of the variables which begin with the letters in letterlist to 
  83.  be single precision variables.  Letterlist consists of individual letters 
  84.  and/or letter ranges of the form letter1-letter2. 
  85.  
  86.  
  87. DEFSTRletterlist
  88.  Defines all of the variables which begin with the letters in letterlist to 
  89.  be string variables.  Letterlist consists of individual letters and/or 
  90.  letter ranges of the form letter1-letter2. 
  91.  
  92.  
  93. DIMvariablename(dimension)list
  94.  Defines variablename as an array with the given dimensions.  Dimension is a 
  95.  list of one or more numeric expressions, defining the "length", "width", and 
  96.  so on, for the array. 
  97.  
  98.  
  99. EDITlinenumber range
  100.  Enter text editing mode using the given lines. 
  101.  
  102.  
  103. END
  104.  Terminates execution of the BASIC program. 
  105.  
  106.  
  107. ERL
  108.  Returns the line number of the last error. 
  109.  
  110.  
  111. ERR
  112.  Returns the error code number of the last error. 
  113.  
  114.  
  115. ERRORnumericexpression
  116.  Simulates the error specified by numericexpression. 
  117.  
  118.  
  119. EXP(numericexpression)
  120.  Returns the exponential (antilog) of numericexpression. 
  121.  
  122.  
  123. FIX(numericexpression)
  124.  Returns the whole number portion of numericexpression. 
  125.  
  126.  
  127. FORcountervariable=initialvalueTOfinalvalueSTEPincrement 
  128. ...NEXTcountervariable. 
  129.  Executes the commands between the FOR command and the NEXT command 
  130.  repetitively, varying countervariable from initialvalue to finalvalue, adding 
  131.  increment to it each time BASIC ends the loop.  (see NEXT)
  132.  
  133.  
  134. FRE(expression)
  135.  Returns the current amount of unused numeric memory in bytes when expression 
  136.  is numeric and the current total amount of unused string space when 
  137.  expression is string-type. 
  138.  
  139.  
  140. GOSUB ...RETURN
  141.  Transfers program control to the subroutine beginning at line number. 
  142.  (see RETURN)
  143.  
  144. GOTOlinenumber
  145.  Branches program control to the specified linenumber. 
  146.  
  147.  
  148. HIMEM
  149.  Returns the top address of memory available to BASIC. 
  150.  
  151.  
  152. IF relational-or-logicalexpression THEN command(s)1 ELSE commands(s)2
  153.  Test the logical "truth" of relational or logicalexpression.  If the 
  154.  expression is "true", then BASIC executes command(s)1.  If the expression is 
  155.  "false", BASIC executes command(s)2. 
  156.  
  157.  
  158. INP(portnumber)
  159.  Returns a byte from the specified CPU portnumber. 
  160.  
  161.  
  162. INSTR(startposition,searchstring,matchstring)
  163.  Searches searchstring for the first occurrence of matchstring, beginning at 
  164.  startposition.  If the string is found, INSTR returns the position in the 
  165.  string where it occurs.  If the string isn't found, then INSTR returns a 
  166.  zero. 
  167.  
  168.  
  169. INT(numericexpression)
  170.  Returns the whole number representation of numeric expression not greater 
  171.  than numericexpression. 
  172.  
  173. <EOF>
  174.