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.E < prev    next >
Text File  |  1984-04-29  |  2KB  |  65 lines

  1.         INPUT/OUTPUT
  2.  
  3. The input and output facilities of TARBELL BASIC were designed
  4. to create a new standard of flexibility.  Essentially, commands
  5. are provided to allow any output statement to transfer data
  6. to most output devices, and any input statement to transfer data
  7. from most input devices.  In order to do this, devices are
  8. grouped into logical devices and physical devices.  Logical
  9. devices are those that are activated by the input and output
  10. commands, and are listed in the table on the left.  Physical
  11. devices are actual pieces of hardware, such as a CRT, printer,
  12. cassette, and disk.  There is a table, called the MODES table,
  13. which remembers the assignment of physical devices to logical
  14. devices.  The MODES table has ten bytes, numbered from 0 to 9.
  15. Each byte represents a corresponding I/O device driver in the
  16. I/O section.  Each bit in each byte corresponds to one of the
  17. eight possible logical devices, numbered from 0 to 7.  The
  18. table below shows the logical and physical devices, and their
  19. default assignments for TARBELL CASSETTE BASIC:
  20.  
  21. Logical Device    Number        Physical Device        Number
  22.  
  23. INPUT        0        Console Keyboard    0
  24. PRINT        1        Console Printer        1
  25. CLOAD        2        Cassette Input        2
  26. CSAVE        3        Cassette Output        3
  27. BGET & BLOAD    4        Cassette Input        2
  28. BPUT & BSAVE    5        Cassette Output        3
  29. Spare        6        Spare Input/Output    4
  30. Spare        7        Listing Device Output    5
  31.                 Reader Input        6
  32.                 Punch Output        7
  33.                 Disk Input        8
  34.                 Disk Output        9
  35.  
  36. The current assignments may be viewed by entering the
  37. CHANNEL statement.  Every place an X occurs, an assignment
  38. exists between the physical device to the left and the logical
  39. device above.  The ASSIGN and DROP statements can be used to
  40. set and reset bits in the table, respectively.
  41.  
  42. To get an idea of how this works, just type DROP 1,1.
  43. This will drop the console output device as the PRINT device.
  44. Don't worry!  Nothing's wrong.  Your keyboard is still feeding
  45. commands to the console INPUT device, you just can't see the 
  46. echo.  Now simply say ASSIGN 1,1 and you'll be back in business.
  47.  
  48. Note that the I/O section (see seperate listing)
  49. creates the default assignments by transfering ten bytes
  50. to the MODES table.  If you wish to change the default
  51. assignments, just change these ten bytes (at IMODES).
  52.  
  53.  
  54.  
  55.                 E
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.