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.CPM < prev    next >
Text File  |  1984-04-29  |  3KB  |  57 lines

  1. SPECIAL INSTRUCTIONS FOR USE OF CP/M VERSION OF TARBELL CASSETTE BASIC
  2.  
  3. The CP/M version of TARBELL CASSETTE BASIC is not only set up to run
  4. on CP/M, but also has some CP/M disk I/O capability.  This includes
  5. writing and reading TARBELL BASIC programs to and from CP/M disk,
  6. and writing and reading string and numeric data to and from CP/M disk.
  7. It does not include, however, the capability of accessing random files,
  8. or of having more than one disk file open at a time.  Of course if you
  9. bought the source, you are encouraged to try implementing these features
  10. and sharing your experience with others.
  11.  
  12. The normal sequence to access CP/M files is as follows:
  13.  
  14. 1.  To open a CP/M file from TARBELL CASSETTE BASIC, type
  15.     ?USR(LOC("filename"))
  16.     where filename is the name of the file you wish to open.
  17.     This filename can be any string expression, including a
  18.     string variable name.  If you use the leading question mark,
  19.     a number will be typed which has no meaning.  If you are
  20.     within a program, and don't want the number typed, you
  21.     can use LET <variable name> = USR(LOC("filename")) instead.
  22.  
  23. 2.  To close the current CP/M file, use  ?USR(0) .  Again, the
  24.     LET statement may be used instead of the PRINT statement (?).
  25.  
  26. 3.  To open the current CP/M file without changing the name in
  27.     the file control block, for example after naming the file
  28.     after the TBASIC in CP/M, use  ?USR(1).  This will open
  29.     the file without putting a name into the file control block.
  30.  
  31. 4.  To write the BASIC program from main memory onto disk, first
  32.     open the file as shown in 1 or 3 above, then type
  33.     CSAVE x
  34.     where x is a one-letter code which gets put at the top of the
  35.     program, and which must be used in any later CLOAD.
  36.  
  37. 5.  To read a BASIC program from disk into main memory, first open
  38.     the file as shown in 1 or 3 above, then type
  39.     CLOAD x
  40.     where x is the same one-letter code which was used in the CSAVE.
  41.  
  42. 6.  Be sure to remember to close the file as shown in 2 above, after
  43.     either saving or loading a program.
  44.  
  45. 7.  To write data from main memory onto disk (only during a program),
  46.     first open the file as shown in 1 or 3 above, then use CSAVE x,
  47.     where x is the name of the variable you want saved.  More than
  48.     one variable may be saved onto one file, but be sure to close
  49.     the file after saving all the variables required.
  50.  
  51. 8.  To read data from disk into main memory (only during a program),
  52.     first open the file as shown in 1 or 3 above, then use CLOAD x,
  53.     where x is the name of the variable you want to read.  More than
  54.     one variable may be loaded from the file, but be sure to load
  55.     them in the same order they were saved, and close the file after
  56.     all variables have been loaded.
  57.