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

  1.  
  2.  Title: CASSETTE (CAS)
  3.  
  4.  
  5. All files are the result of digitized input, at one time or another.  Files 
  6. are written-to, and read-from.  Reading from a file is non-destructive, 
  7. whereas writing to a file may be destructive.  Destructiveness depends on 
  8. whether the process of writing to a file is replacing the given file's current 
  9. contents, or appending to those contents. 
  10.  
  11. Files stored on cassette are more permanent than those stored in RAM.  Any 
  12. serious loss of power, corruptive power surge, or uncontrolled process may 
  13. damage, or eliminate the contents of files stored in RAM.  It is imperative 
  14. that this last statement be understood.  The practice of writing the contents 
  15. of RAM files to a less electrically active storage media, like cassette tape, 
  16. is highly recommended.
  17.  
  18. Cassette (CAS) filenames consist of a string of one to six characters, the 
  19. first of which is a letter.  There is no need for an extension.  However, 
  20. files saved in ASCII (.DO files, or BASIC programs saved with the A attribute) 
  21. may be loaded directly into the TEXT program, or transmitted out either the 
  22. serial or modem ports via the TELCOM program. 
  23.  
  24. The Model 100 computer was originally designed to use a cassette player, and 
  25. tape, as its primary storage media.  After the introduction of the Model 100, 
  26. Tandy introduced the Disk Video Interface, a unit incorporating 1, or 2, 5.25 
  27. inch disk drives, and monitor.  Then, they brought out the the Tandy Portable 
  28. Disk Drive, in two versions (TPDD 1, 100K bytes per disk, and TPDD 2, 200K 
  29. bytes per disk) - both units uss the new 3.5 inch disks.  During this same 
  30. time, a company called Holmes Engineering built, and sold, through the 
  31. Portable Computer Support Group (PCSG), a disk drive called the "Chipmunk." 
  32.  
  33. In all cases, disk drives need additional programming to allow the Model 100 
  34. to use them as a storage device.  This additional program is called a Disk 
  35. Operating System (pronounced DOS, as in the, "wizard of Oz").  Fortunately, 
  36. the manufacturers of the disk drives include a DOS.  Unfortunately, with the 
  37. exception of the DVI and the Chipmunk, the TPDD series may not be access 
  38. directly from BASIC or TEXT, unless one uses one of several 3rd party DOSes, 
  39. i.e TS-DOS by Traveling Software, Power-DOS by Acroatix, Disk Power by 
  40. UltraSoft Inovations, or the public domain program called Disk Manager 
  41. (DSKMGR).  In these later cases, commands for loading, or saving to the 
  42. CAS:filename may be modified to read 0:filename. 
  43.  
  44. Lastly, the TPDD drives may not be accessed while using the modem via the 
  45. TELCOM program because they [the TPDD drives] connect to the serial port.  
  46. Both the modem and the serial port are controlled by a UART (universal 
  47. asychronous receiver transmitter).  The UART can control only one device at a 
  48. time, not both.  However, it is possible, for qualified electrical tinkerers 
  49. only, to add an additional UART to their Model 100, dedicating each UART to a 
  50. given device, thus allowing for drive access while using the modem.  Adding a 
  51. second UART will void the warranty. 
  52.  
  53.  
  54. CLOAD"filename"
  55.  Clears the current BASIC program and loads a BASIC program from cassette 
  56.  tape.  R, if present, tells BASIC to run the program after it is loaded.
  57.  
  58.  
  59. CLOAD?"filename"
  60.  Compares the cassette file filename with the BASIC program currently in 
  61.  memory.  If there are any differences, BASIC displays the message "verify 
  62.  failed" on the screen; otherwise, BASIC simply prints OK. 
  63.  
  64.  
  65. CLOADM"filename"
  66.  Loads the machine-language program called filename from cassette tape into 
  67.  memory, at the address used when is was written to the cassette tape.
  68.  
  69.  
  70. CLOSEfilenumberlist
  71.  Closes the files OPEN'ed as filenumber. 
  72.  
  73.  
  74. CSAVE"filename",A
  75.  Stores the current BASIC program on cassette tape as filename.  A, if 
  76.  present, tells BASIC to save the program in ASCII format.  If omitted, BASIC 
  77.  stores the program in a compressed binary form, also known as tokenized. 
  78.  
  79.  
  80. CSAVEM"filename",startaddress,endaddress,entryaddress
  81.  Writes the machine-language program stored from startaddress to endaddress 
  82.  with the entryaddress onto cassette tape, under the name filename.
  83.  
  84.  
  85. EOF(filenumber)
  86.  Tests for an end-of-file condition on the cassette file OPEN'ed as 
  87.  filenumber.  The function returns a "logical" answer, either "true" (-1) if 
  88.  you have reached the end of the file, or else "false" (0) if you have not 
  89.  reached the end of the file. 
  90.  
  91.  
  92. INPUT#filenumber,variablelist
  93.  Inputs data sequentially from the cassette file OPEN'ed as filenumber. 
  94.  
  95.  
  96. INPUT$(numericexpression,filenumber)
  97.  Returns a string of a length given by numericexpression from the cassette 
  98.  file OPEN'ed as filenumber. 
  99.  
  100.  
  101. LINEINPUT#filenumber,stringvariable
  102.  Reads a line of text into stringvalue from device named as filenumber.
  103.  
  104.  
  105. LOAD"CAS:filename",R
  106.  Loads a BASIC program from cassette.  If R is present, BASIC runs the program 
  107.  after it has been loaded. 
  108.  
  109.  
  110. LOADM"CAS:filename"
  111.  Loads the machine-language program filename from cassette at the address 
  112.  specified when it was saved. 
  113.  
  114.  
  115. MAXFILES
  116.  Stores the current maximum number of files.  You may access MAXFILES line any 
  117.  numeric variable. 
  118.  
  119.  
  120. MERGE"CAS:filename"
  121.  Merges the lines from the ASCII formatted cassette file called filename with 
  122.  the lines of the current program. 
  123.  
  124.  
  125. MOTORONorOFF
  126.  Starts or stops cassette player motor.
  127.  
  128.  
  129. OPEN"CAS:filename"FORmodeASfilenumber
  130.  Allocates a buffer, filenumber, for a cassette file called filename.  Mode 
  131.  can be OUTPUT, specifying data will be written sequentially to the file, 
  132.  starting at the beginning of the file, INPUT, specifying data will be read 
  133.  sequentially from the file, starting at the beginning of the file, or APPEND, 
  134.  specifying that data will be written sequentially to the file, adding records 
  135.  to the end of the file. 
  136.  
  137.  
  138. PRINT#filenumber,expressionlist
  139.  Writes the values of expressionlist to the cassette file OPEN'ed as 
  140.  filenumber. 
  141.  
  142.  
  143. PRINT#filenumber,USING"format";expressionlist
  144.  Formats the data in expressionlist and sends it to a cassette file OPEN'ed 
  145.  as filenumber.  Format consists of one of more of the following "field 
  146.  specifiers": 
  147.  
  148. Prints first string character.
  149.  PRINT#1,USING"!";"Tandy"
  150.  
  151. Prints 2+n characters from a string.
  152.  PRINT#1,USING"\\";"Tandy"
  153.  
  154. Print one digit for each #.
  155.  PRINT#1,USING"#####";5
  156.  
  157. Inserts the algebraic sign of the number.
  158.  PRINT#1,USING"+####";-13
  159.  
  160. Inserts a minus sign either at the beginning or end of negative numbers.  
  161.  PRINT#1,USING"-####";14 
  162.  
  163. Converts leading blanks to leading asterisk blanks.
  164.  PRINT#1,USING"**#####";145 
  165.  
  166. Inserts a dollar sign to the immediate left of the formatted number.  
  167.  PRINT#1,USING"$$#####";450 
  168.  
  169. Changes leading spaces to asterisks except for the space to the immediate left 
  170. of the number, where is inserts a dollar sign. 
  171.  PRINT#1,USING"**$###";12 
  172.  
  173. Inserts a decimal point.
  174.  PRINT#1,USING"#####.##";14.5
  175.  
  176. Inserts a comma before every three printed digits to the left of the decimal 
  177. point. 
  178.  PRINT#1,USING"#########,";14432
  179.  
  180. Prints the number in exponential format.
  181.  PRINT#1,USING"###.##^^^^";342200 
  182.  
  183.  
  184. RUN"CAS:filename",R
  185.  Clears all variables, loads the BASIC program called filename from cassette, 
  186.  and then executes the program.  If R is present, BASIC keeps all open files 
  187.  open.  If R is omitted, BASIC closes all open file before loading filename. 
  188.  
  189.  
  190. RUNM"CAS:filename"
  191.  Loads and executes the machine-language program stored as filename.  The 
  192.  program must be one executable from the menu, not a BASIC subroutine.  In 
  193.  addition, when the program is loaded, BASIC closes all open files.
  194.  
  195.  
  196. SAVE:CAS:filename",A
  197.  Writes the current BASIC program to the cassette file called filename.  A is 
  198.  optional; if used, BASIC saves the file in ASCII format.  Otherwise BASIC 
  199.  saves the file in a compressed binary format (also called tokenized)  If 
  200.  filename already exists on cassette, BASIC writes over the old file. 
  201.  
  202.  
  203. SAVEM"CAS:filename",startaddress,endaddress,entryaddress
  204.  Writes the machine-language program stored from startaddress to endaddress 
  205.  onto cassette, under the name filename.  Entryaddress is optional; if not 
  206.  present, then BASIC assumes that the program entryaddress is the same as the 
  207.  startaddress. 
  208.  
  209.  
  210. TAB(numericexpression)
  211.  Writes numericexpression spaces before writing the next data item.  
  212.  Numericexpression spaces between 0 and 255. 
  213.  
  214. <EOF>
  215.