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 / ZSYS / SIMTEL20 / ZCPR3 / IO.HLP < prev    next >
Text File  |  2000-06-30  |  12KB  |  390 lines

  1. ;
  2.  
  3.  
  4.            Redirectable I/O Under ZCPR3 and SYSIO
  5.  
  6.                        -- Concepts --
  7.                   1 - ZCPR3 and SYSIO
  8.                   2 - ZCPR3 and I/O Redirection
  9.  
  10.                        -- Commands --
  11.                        C - CPSEL
  12.                        D - DEVICE
  13.                        E - DEV
  14.                        L - LDR
  15.                        R - RECORD
  16.  
  17. :1
  18.                 Redirectable I/O Under ZCPR3
  19.  
  20.      Thσ concep⌠ oµ redirectablσ I/╧ involve≤ thσ assignmen⌠ ì
  21. oµá physica∞á device≤ t∩ logica∞ devices«á  ZCPR│á anΣá CP/═ ì
  22. suppor⌠ fou≥ logica∞ devices:
  23.  
  24.      CON: - Console - An I/O Device for User/System Commo
  25.      LST: - Printer - An Output-Only Device for Printouts
  26.      RDR: - Reader  - An Input-Only Device
  27.      PUN: - Punch   - An Output-Only Device
  28.  
  29.      Unde≥ CP/M¼á therσ arσ onl∙ fou≥ physica∞ device≤ whicΦ ì
  30. ma∙ bσ assigneΣ t∩ eacΦ oµ thσ fou≥ logica∞ devices«á  Unde≥ ì
  31. ZCPR3¼á therσá ma∙á bσ a≤ man∙ physica∞ device≤á a≤á desireΣ ì
  32. whicΦ ma∙ bσ assigneΣ t∩ eacΦ oµ thσ fou≥ logica∞ devices.
  33.  
  34.      ┴á "physica∞á deviceóá iε thσ traditiona∞á sensσá i≤á ß ì
  35. conventiona∞á I/╧ device¼á likσ ß CR╘ o≥ ß Printer«á  Iε thσ ì
  36. sensσ oµ ZCPR3¼á i⌠ i≤ ß devicσ driver¼ o≥ bod∙ oµ software¼ ì
  37. whicΦá i≤á communicateΣ witΦ viß thσá BIOS«á  Thi≤á bod∙á oµ ì
  38. software¼ iε turn¼ ma∙ communicatσ witΦ an∙ devicσ O╥ SE╘ O╞ ì
  39. DEVICE╙ tha⌠ i⌠ wishes.
  40.  
  41.      SYSI╧á i≤á ßá samplσ se⌠ oµá Redirectablσá I/╧á Driver≤ ì
  42. designeΣá t∩ bσ useΣ witΦ ZCPR│ oε m∙ system«á  Unde≥ SYSIO¼ ì
  43. some of thσ "physica∞ devicesó implemented are:
  44.  
  45. CON: Devices - TTY
  46.                CRT
  47.                CRT Input and CRT/Remote Computer Output
  48.                CRT and Modem Input and CRT and Modem Output
  49.                     in Parallel
  50.                CRT Input and CRT/Modem Output
  51.  
  52. LST: Devices - TTY
  53.                CRT
  54.                Modem
  55.                Remote Computer
  56.  
  57. RDR: and PUN: Devices - Clock
  58.  
  59.  
  60.      A≤ yo⌡ caε see¼á thσ "physica∞ devicesó unde≥ ZCPR│ caε ì
  61. bσá combination≤á oµá actua∞ devices«á  Thσá CR╘á Inpu⌠á anΣ ì
  62. CRT/Remotσ Compute≥ Outpu⌠ device¼á fo≥ instance¼ i≤ useΣ t∩ ì
  63. allo≈á ß remotσ compute≥ recorΣ screeε display≤ whicΦ g∩á t∩ ì
  64. thσ CRT.
  65.  
  66.      Unde≥ ZCPR3¼ a≤ man∙ sets¼ o≥ packages¼ oµ Redirectablσ ì
  67. I/╧á Driver≤á a≤ desireΣ caε bσ created«á  EacΦ packagσá caε ì
  68. givσá thσá use≥á differen⌠á type≤á oµáá capabilities«áá  Fo≥ ì
  69. instance¼á onσá packagσ caε bσ likσ thσ abovσ examplσá whilσ ì
  70. anothe≥ packagσ caε providσ Disδ Recordinτ capability¼á sucΦ ì
  71. a≤ CR╘ Inpu⌠ anΣ CRT/Disδ Filσ Output.
  72.  
  73.  
  74.      Thσá ZCPR│á Systeφ oµ Program≤ contain≤ fou≥á utilitie≤ ì
  75. designeΣá t∩á suppor⌠ thσ Redirectablσá I/╧á System«á  Thesσ ì
  76. utilitie≤ anΣ thei≥ function≤ are:
  77.  
  78.           LDR      -- Load a Redirectable I/O Package
  79.           DEVICE   -- Display and Select Physical I/O Devices
  80.           DEV      -- Shorthand form of DEVICE
  81.           RECORD   -- Turn on and off the Recording Facility
  82.  
  83.      Thi≤á HEL╨ Filσ discusse≤ thesσ utilitie≤ anΣ ho≈á the∙ ì
  84. arσ intendeΣ t∩ bσ used.
  85.  
  86.      Implementatioεá detail≤ fo≥ I/╧ Package≤ arσ lef⌠ t∩á ß ì
  87. stud∙á oµ thσ sourcσ codσ oµ thσ samplσ I/╧ Packagσ anΣá thσ ì
  88. ZCPR3 book.
  89.  
  90. :L
  91.           Loading Redirectable I/O Drivers -- LDR
  92.  
  93.      Onσá oµá thσ man∙ function≤ oµ LD╥ i≤ t∩á loaΣá aεá I/╧ ì
  94. Packagσá int∩ thσ prope≥ memor∙ buffer«á  LD╥ perform≤á thi≤ ì
  95. function when given a file specification of type IOP:
  96.  
  97.           LDR myio.iop
  98.  
  99. will load MYIO.IOP as an I/O Package.
  100.  
  101.      LD╥á perform≤á ß structurσ checδ beforσá approvinτá thσ ì
  102. load.
  103.  
  104. :D
  105.  
  106. Command:  DEVICE3 1.0  (DEVICE)
  107.  
  108. Syntax:
  109.  
  110.      DEVICE              <-- Enter Interactive Command Mode
  111.  
  112. Function:
  113.  
  114.      DEVIC┼á i≤á useΣá t∩ allo≈ thσá use≥á t∩á interactivel∙ ì
  115. displa∙áá thσá name≤á oµá thσá availablσá physica∞áá device≤ ì
  116. (actually¼á devicσá drivers⌐á whicΦ ma∙ bσ assigneΣá t∩á thσ ì
  117. logica∞á device≤ anΣ t∩ allo≈ thσ use≥ t∩ assigε ßá physica∞ ì
  118. devicσ t∩ ß logica∞ devicσ b∙ name.
  119.  
  120.  
  121. Options:
  122.      None
  123.  
  124. Comments:
  125.  
  126.      DEVIC┼á onl∙ run≤ iε aε interactivσ mode«á  I⌠ respond≤ ì
  127. t∩áá single-characte≥á commands¼áá completinτá thσáá commanΣ ì
  128. sequences in response and prompting the user.
  129.  
  130.      The following commands are recognized by DEVICE:
  131.  
  132.           D - Display Device Names
  133.  
  134.           C - Select Console Device (CON:)
  135.           L - Select List Device (LST:)
  136.           P - Select Punch Device (PUN:)
  137.           R - Select Reader Device (RDR:)
  138.  
  139.           X - Exit
  140.  
  141.  
  142.      Thσ Displa∙ Devicσ Name≤ commanΣ (D⌐ ask≤ thσ use≥á fo≥ ì
  143. the devices to display.  His responses are:
  144.  
  145.           A - All
  146.           C - Consoles
  147.           L - Lists
  148.           P - Punches
  149.           R - Readers
  150.  
  151.      Thσá Exi⌠ commanΣ exit≤ t∩ ZCPR│ withou⌠ promptinτá fo≥ ì
  152. confirmation.
  153.  
  154.      Thσ othe≥ fou≥ command≤ (C¼ L¼ P¼ anΣ R⌐ assigε device≤ ì
  155. IMMEDIATELY«á  Thσá use≥ type≤ thσ namσ oµ thσ devicσ t∩á bσ ì
  156. assigned«á  Iµ hσ strike≤ ß returε iε responsσ t∩ thσ devicσ ì
  157. name prompt, the command is aborted.
  158.  
  159.  
  160. Selected Error Messages:
  161.  
  162.      Self-Explanatory
  163.  
  164. Examples of Use:
  165.  
  166.      DEVICE
  167.           -- invoke utility
  168.  
  169. :E
  170.  
  171. Command:  DEV 1.0
  172.  
  173. Syntax:
  174.  
  175.      DEV command,command,...
  176.  
  177. Function:
  178.  
  179.      DE╓á i≤ ß utilit∙ whicΦ enable≤ thσ use≥ t∩á manipulatσ ì
  180. thσá ZCPR│ redirectablσ I/╧ devicσ drivers«á  I⌠ allow≤á thσ ì
  181. use≥á t∩ displa∙ thσ name≤ oµ thσ curren⌠ device≤ anΣ selec⌠ ì
  182. them.
  183.  
  184.      Unlikσ it≤ counterpart¼á DEVICE¼á DE╓ accept≤ al∞ inpu⌠ ì
  185. from the command line and is not interactive.
  186.  
  187. Options:
  188.      None
  189.  
  190. Comments:
  191.  
  192.      An∙ DE╓ commanΣ ma∙ takσ thσ followinτ forms«  Onl∙ thσ ì
  193. first letters are significant in the these commands:
  194.  
  195.           DISPLAY ALL    <-- Display names of all devices
  196.           DISPLAY CON    <-- Display consoles
  197.           DISPLAY LST    <-- Display printers
  198.           DISPLAY PUN    <-- Display punches
  199.           DISPLAY RDR    <-- Display readers
  200.  
  201.      D A is the same as DISPLAY ALL.
  202.  
  203.      Thσá ful∞á devicσ namσ mus⌠ bσ giveε iεá thσá followinτ ì
  204. commands«áá  Onl∙á thσá firs⌠á characte≥á anΣá thσá '=ºá arσ ì
  205. significant in the rest of the command.
  206.  
  207.      CON:=name      LST:=name      PUN:=name      RDR:=name
  208.  
  209.      C=name is the same as CON:=name.
  210.  
  211. Selected Error Messages:
  212.  
  213.      "DE╓á NO╘á InitializeΣ witΦ I/╧ Baseó mean≤á tha⌠á thi≤ ì
  214. ZCPR3 System does not support Redirectable I/O.
  215.  
  216.      "Redirectioεá No⌠á Supportedóá mean≤á tha⌠á thσá loadeΣ ì
  217. drivers in the I/O Package do not support redirection.
  218.  
  219. Examples of Use:
  220.  
  221.      DEV C=CRT,L=TTY
  222.           -- assign CRT to CON: and TTY to LST:
  223.  
  224.  
  225. :R
  226.  
  227. Command:  RECORD 3.0
  228.  
  229. Syntax:
  230.  
  231.    RECORD ON or OFF              <-- Console Recording
  232. or
  233.    RECORD ON or OFF PRINTER      <-- Printer Recording
  234.  
  235. Function:
  236.  
  237.      RECOR─á i≤ useΣ t∩ contro∞ thσ Disδ Outpu⌠ Facilit∙á oµ ì
  238. thσ Redirectablσ I/╧ Drivers«  Copie≤ oµ Consolσ anΣ Printe≥ ì
  239. output≤á caεá bσ createΣ iε disδ file≤ b∙ thσá usσá oµá thi≤ ì
  240. facility¼á anΣá i⌠á ma∙ bσ extendeΣ int∩ ß numbe≥á oµá othe≥ ì
  241. application≤ a≤ well.
  242.  
  243.  
  244. Options:
  245.  
  246.      ON  - Enable Recording
  247.      OFF - Disable Recording
  248.  
  249.      P   - Reference Printer
  250.  
  251. Comments:
  252.  
  253.      Fo≥á RECOR─á t∩á perforφá it≤á function¼áá i⌠á mus⌠á bσ ì
  254. implementeΣ iε thσ Redirectablσ I/╧ Drivers«á  Thi≤ i≤á lef⌠ ì
  255. a≤ aε exercisσ fo≥ thσ reader«  Thσ Redirectablσ I/╧ Driver≤ ì
  256. supplieΣá witΦ ZCPR│ havσ simplσ RETurε instruction≤ a≤á thσ ì
  257. subroutine≤ executeΣ b∙ thσ RECOR─ functions.
  258.  
  259.  
  260.      Fou≥á routine≤á arσá accesseΣ iε thσá Redirectablσá I/╧ ì
  261. Drive≥ packagσ t∩ contro∞ thσ RECOR─ function«  The∙ are:
  262.  
  263.           COPEN  -- Enable Recording Console Output
  264.           LOPEN  -- Enable Recording List Output
  265.           CCLOSE -- Disable Recording Console Output
  266.           LCLOSE -- Disable Recording List Output
  267.  
  268.      RECOR─ i≤ indirectl∙ tieΣ int∩ DEVICE«  Invokinτ RECOR─ ì
  269. itselµá doe≤á no⌠á necessaril∙ star⌠ thσá recordinτá proces≤ ì
  270. immediately«áá  Tw∩á function≤á mus⌠á takσá placσá t∩á begiε ì
  271. recordinτ outpu⌠ ont∩ disδ files:
  272.  
  273.     1) RECORD has to turn the appropriate Driver ON
  274.     2) DEVICE has to select the appropriate Driver
  275.  
  276.  
  277.      B∙ turninτ RECOR─ OF╞ durinτ ß recordinτá session¼á thσ ì
  278. outpu⌠á filσá i≤ closeΣ anΣ availablσ fo≥á othe≥á uses«á  Iµ ì
  279. RECOR─á i≤ late≥ turneΣ ON¼á thσ outpu⌠ filσ ma∙ bσá deleteΣ ì
  280. (iµ thσ samσ filσ i≤ selecteΣ t∩ recorΣ into)«á  However¼ iµ ì
  281. ßá ne≈á devicσ i≤ selecteΣ whilσ RECOR─ i≤ O╬á (say¼á DEVIC┼ ì
  282. CON:=CR╘ i≤ issued)¼ theε recordinτ i≤ SUSPENDE─ (NO╘ turneΣ ì
  283. off⌐á unti∞ thσ recordinτ devicσ i≤á selecteΣá again«á  WitΦ ì
  284. thi≤á capability¼á iµ i⌠ look≤ likσ thσ recordinτ sessioε i≤ ì
  285. no⌠á goinτ well¼á recordinτ caε bσá suspended¼á thσá probleφ ì
  286. fixed¼ anΣ theε recordinτ caε bσ resumed.
  287.  
  288.      Thi≤á combineΣá systeφ oµ DEVIC┼ anΣ RECOR─ provide≤á ß ì
  289. flexiblσ outpu⌠ recordinτ system«á  Iε addition¼á thσ outpu⌠ ì
  290. recordinτ neeΣ no⌠ necessaril∙ g∩ t∩ ß disδ file«á  I⌠ coulΣ ì
  291. bσ se⌠ u≡ t∩ senΣ CON║á outpu⌠ t∩ thσ CR╘ and¼ say¼ ß Remotσ ì
  292. Compute≥ fo≥ processing.
  293.  
  294.  
  295. Selected Error Messages:
  296.  
  297.      "I/╧ Drive≥ Addres≤ NO╘ Definedó mean≤ tha⌠ therσ i≤ n∩ ì
  298. I/O Package in this ZCPR3 System.
  299.  
  300.      "Disδá Drive≥á Modulσ NO╘ Loadedó mean≤á tha⌠á thσá I/╧ ì
  301. Package does not support the RECORD facility.
  302.  
  303.      "N∩á I/╧á Drive≥ Modulσ Loadedó mean≤ tha⌠ LD╥ ha≤á no⌠ ì
  304. been run to load an *.IOP file.
  305.  
  306. Examples of Use:
  307.  
  308.      RECORD ON
  309.           - turn on recording for the console
  310.  
  311.      RECORD ON P
  312.           - turn on recording for the printer
  313.  
  314. :2
  315.  
  316.  
  317.            Redirectable I/O and the ZCPR3 System
  318.  
  319.      Thσáá ZCPR│á Systeφá caεá functioεá witΦáá o≥áá withou⌠ ì
  320. Redirectablσá I/╧á a≤á implementeΣ b∙ thσá Redirectablσá I/╧ ì
  321. Drive≥á Package≤á anΣá thσá LDR¼á DEV¼á DEVICE¼á anΣá RECOR─ ì
  322. programs«á  Obviously¼á thσá ZCPR│ Systeφ i≤ madσ mucΦá morσ ì
  323. flexiblσ b∙ employinτ thesσ facilities.
  324.  
  325.      DEVIC┼ anΣ RECOR─ arσ tieΣ directl∙ t∩ thσ Redirectablσ ì
  326. I/╧á Package≤ themselves«á  The∙ don'⌠ usσ an∙ oµ thσá othe≥ ì
  327. feature≤á oµá thσ ZCPR│ Systeφ t∩ speaδá of¼á anΣá the∙á arσ ì
  328. installeΣ b∙ Z3INS.
  329.  
  330.  
  331.      Thσá program≤ controllinτ thσ Redirectablσ I/╧á Driver≤ ì
  332. arσ tieΣ togethe≥ iε thi≤ manner:
  333.  
  334.           LDR       loads the drivers
  335.           DEVICE    controls the drivers
  336.           DEV       controls the drivers
  337.           RECORD    enables and disables the recording
  338.                          facilities of the drivers
  339.  
  340. :C
  341.  
  342. Command:  CPSEL 1.0
  343.  
  344. Syntax:
  345.  
  346.      CPSEL cmd1,cmd2,...
  347.  
  348. Function:
  349.  
  350.      CPSE╠á (CRT/Printe≥á SELect⌐ i≤ ß ZCPR│á utilit∙á whicΦ ì
  351. permit≤ thσ use≥ t∩ dynamicall∙ selec⌠ thσ CR╘ (oµ CR╘ ░ anΣ ì
  352. CR╘á 1⌐ anΣ Printe≥ (oµ Printer≤ 0¼á 1¼á 2¼á anΣ 3⌐ froφ thσ ì
  353. curren⌠á ZCPR│á Environmen⌠á Descriptor«á  Thi≤á dynamicall∙ ì
  354. change≤ thσ characteristic≤ oµ thσ printe≥ anΣ CR╘ whicΦ arσ ì
  355. used by other ZCPR3 utilities, such as PRINT.
  356.  
  357. Options:
  358.      None
  359.  
  360.  
  361. Comments:
  362.  
  363.      The commands may be any of the following:
  364.  
  365.           Cc, c=0 or 1   -- Select CRT 0 or CRT 1
  366.  
  367.           Pp, p=0-3      -- Select Printer 0-3
  368.  
  369.           Dd, d=A (All), C (CRT), P (Printer)
  370.                -- Display Selection Values
  371.  
  372.      Thσ value≤ affecteΣ b∙ thesσ selection≤ includσá numbe≥ ì
  373. oµá line≤á anΣá column≤ oε thσ CR╘ anΣ numbe≥ oµá line≤á anΣ ì
  374. column≤ oε thσ printer«á  Thσ abilit∙ oµ thσ printe≥ t∩ forφ ì
  375. feed is also included.
  376.  
  377.  
  378. Selected Error Messages:
  379.      None
  380.  
  381. Examples of Use:
  382.  
  383.      CPSEL DA
  384.           - display all devices
  385.  
  386.      CPSEL C1,P3,DA
  387.           - Select CRT 1 and Printer 3; display all devices
  388.                when done
  389.  
  390.