home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / SIMTEL / CPMUG / CPMUG031.ARK / TBASIC.6 < prev    next >
Text File  |  1984-04-29  |  3KB  |  67 lines

  1. Statements:
  2.  
  3. * ASSIGN <logical device number>,<physical device number>
  4. Assigns a physical device to a logical device.  Internally,
  5. this command sets a bit in the MODES table.  See Appendix E
  6. for a list of the logical and physical devices.
  7. Examples:  ASSIGN 3,1   ASSIGN PR,CRT   ASSIGN LOGICAL,PHYSICAL
  8.  
  9. * BGET <variable name>
  10. Reads from Binary Input logical device into named variable.
  11. Example:   BGET ITEM(N)   BGET X   BGET ARRAY(X,Y)
  12.  
  13. * BLOAD <string expression>
  14. Reads a program named <string expression> into memory from the
  15. binary input logical device.  All characters of string are used.
  16. Examples:   BLOAD "PAYROLL"   BLOAD PROGNAME$
  17.  
  18. * BPUT <variable name>
  19. Writes the named variable onto the binary output logical device.
  20. Examples:   BPUT ITEM(N)   BPUT X   BPUT ARRAY(X,Y)
  21.  
  22. * BSAVE <string expression>
  23. Writes a program named <string expression> onto the binary output
  24. logical device.  All characters of the string are used.
  25. Example:  BSAVE "PAYROLL"    BSAVE PROGNAME$
  26.  
  27. CHANNEL
  28. Prints a table of the assignments of physical to logical
  29. devices.  See Appendix E for the default assignments.
  30.  
  31. DATA <expression list>
  32. Specifies data to be read by a "READ" statement.  Expressions
  33. are allowed.  String constants must be enclosed by quotes.
  34. Example:  DATA 1,3,5,7,X+Y,Z^2,"DON"+"TARBELL"
  35.  
  36. DEF FN<function name>(<variable list>)=<expression>
  37. Defines a function.  The function name can be any legal variable
  38. name.  The variable list is a list of dummy variables representing
  39. the variables in the function call.  The value of the function is
  40. determined by substituting the values of the variables into the
  41. expression.  Functions may be nested to any depth, and string
  42. functions are legal.  Any number of variables can be used.
  43. Examples:   DEF FNCUBE(X)=X*X*X   DEF FNL3(S$)=LEFT$(S$,3)
  44.         DEF FNRMS(X,Y) = SQR(X^2+Y^2)
  45.  
  46. DIM <array name>(integer)[,<array name>(integer)]...
  47. Allocates space for array variables.  Any number of dimensions
  48. per array are allowed. The value of each expression gives the
  49. maximum subscript permissible.  The smallest is 0.  If no "DIM"
  50. statement is encountered before a reference to an array,
  51. an error message is given.  Multiple arrays may be dimensioned.
  52. Arrays are cleared to zero (numeric) or null (string).  Real
  53. subscripts are allowed in array references, and if used, the
  54. integer part of the subscript will be used for the reference.
  55. Examples:  DIM PARTNO$(100),X(3,10),VERYLONGNAMESAREALLOWED(5)
  56.  
  57.  
  58.  
  59.  
  60.                 6
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.