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 / CPMUG034.ARK / UPD052.TXT < prev    next >
Text File  |  1985-02-10  |  7KB  |  187 lines

  1. Çu▄╜c,t,!%getá└/3u%ef,upd05.txt/%sf,upd05.txt/%bf,upd05.txt/*∞41|qcs|                       Query Command String
  2.  
  3. The value  of  this  function  is  that string of characters`
  4. entered after the name  which  brought  the  SAM76  language`
  5. interpreter into action from the operating system.
  6.  
  7. Γê40|qfs,filename|              Query File Size
  8.  
  9. The value  of  this function is the file size as a number of`
  10. 256 byte records.
  11.  
  12. ~▌39|lff,s0|            List File Functions
  13.  
  14. The value  of  this  function  is  a  list  of the functions`
  15. available in the "dsk" disk overlay. Each function  name  is`
  16. preceded with the string symbolized by "s0".
  17.  
  18. ╙ç38|qfe|                       Query File Extension
  19.  
  20. The value of this function is the current setting of the file`
  21. extension.
  22.  
  23. }37|sfe,s|                     Set File Extension
  24.  
  25. This null  valued function presets the file extension to the`
  26. string symbolized by "s". If "s" is made equal to ???,  then`
  27. all  extensions are accessed. If "s" is made null then files`
  28. with no extensions are accessed.
  29.  
  30.  £36|qdu|                       Query Directory Unit
  31.  
  32. The value  of  this  function  is  the identification of the`
  33. currently active directory unit.
  34.  
  35. ÆÖ35|sdu,d|                     Select Directory Unit
  36.  
  37. This null valued function is used to select the device whose`
  38. number is symbolized by "d".
  39.  
  40. Å"34At  this  time  only  one  input  and one output file may be`
  41. declared  open.  Experience  in  the  use  of  the  language`
  42. suggests very little need for simultaneous access to several`
  43. files  because  of  the  wide variety of other means of file`
  44. management available within the SAM76 language  system.  The`
  45. main  purpose in providing the foregoing set of functions is`
  46. primarily to  permit  conversion  of  "conventional"  system`
  47. files  to  SAM76  organized  file  structures,  or to create`
  48. "conventional" files from SAM76 files.
  49.  
  50. ∙33|wfr,s|                     Write File Record
  51.  
  52. This null  valued  function  will  write out to a previously`
  53. properly opened file the string symbolized by "s". There  is`
  54. no  specified limit as to the number of characters in string`
  55. "s".
  56.  
  57. ∩,32|rfr|                       Read File Record
  58.  
  59. The value  of  this  function  is  one  record  from  a file`
  60. previously opened  using  the  "dif"  designate  input  file`
  61. function.  Typically this will be 128 characters, except for`
  62. the last record of the file which may be less than that.
  63.  
  64. ",31|dof,filename|              Designate Output File
  65.  
  66. This null valued function is used to open a file for output.`
  67. Such output is attained through use of the "wfr" write  file`
  68. record  function or through use of the "soc,FIL" function to`
  69. the desired SAM76  language  function  designed  to  deliver`
  70. output.
  71.  
  72. "filename" is  defined  in  the same manner as for the "dif"`
  73. designate input file function. A file is  explicitly  closed`
  74. by  executing %dof/= with no arguments. Exit using control C`
  75. or the "ex" exit function does not close the file.
  76.  
  77. "?30|dif,filename|              Designate Input File
  78.  
  79. This function  serves  to open a disk file for access either`
  80. through use of the "rfr" read file record function,  or  via`
  81. channel  control  assignment  of  "FIL"  to any of the SAM76`
  82. language functions that are designed to accept input.
  83.  
  84. "filename" symbolizes the name of the file it is desired  to`
  85. access.  This  may  be of the form "name.ext", or just plain`
  86. "name" if the extension has been preset to either  "???"  or`
  87. some  other  explicit extension through use of the "sfe" set`
  88. file extension function.
  89.  
  90. 5─29
  91. .]20    File interaction
  92.  
  93. The file  functions which are available to permit assignment`
  94. via   the   channel  control  mechanism  of  SAM76  language`
  95. functions are defined as follows:
  96.  
  97. ║28
  98. .[20    Caution!
  99.  
  100. The user  must  be careful to construct procedures in such a`
  101. manner that the system will not be "hung" in a mode that  is`
  102. difficult  to recover from. Also judicious use of the "nud",`
  103. and "sem" functions should be considered.
  104.  
  105. °@27|sic,sym|           Select Input Channel
  106.  
  107. This null  valued function assigns to the channel whose name`
  108. is symbolized by "sym" one of the two groups  of  functions:`
  109. if  this  function is executed actively the assignment is of`
  110. the Group 1 functions, if neutrally the assignment is of the`
  111. Group 2 functions.
  112.  
  113. 6K26|soc,sym|           Select Output Channel
  114.  
  115. This null  valued function assigns to the channel whose name`
  116. is symbolized by "sym" one of the two groups  of  functions:`
  117. if this function is executed actively then the assignment is`
  118. of  the  Group 1 functions, if neutrally then the assignment`
  119. is of the Group 2 functions.
  120.  
  121. A±25|loc,s0|            List Output Channels
  122.  
  123. The value  of  this  function is a list of the channel names`
  124. that  may  be  used  in  the  "soc"  select  output  channel`
  125. function.  Each  name is preceded with the string symbolized`
  126. by "s0". Typical symbol names returned by this function are:
  127.  
  128. CON     Normally the user display unit
  129. PUN     Punch
  130. FIL     A disk file properly opened with the "dof" function
  131. USR     A user provided driver pointed to at location POC
  132. LST     A listing device
  133.  
  134. τ▐24|lic,s0|            List Input Channels
  135.  
  136. The value  of  this function is a list of channel names that`
  137. may be used in the "sic" select input channel function; each`
  138. name in the value  returned  is  preceded  with  the  string`
  139. symbolized  by  "s0". Typical of these channel names are the`
  140. following:
  141.  
  142. CON     Console, normally the user keyboard
  143. RDR     Reader
  144. FIL     A disk file opened with the "dif" function
  145. USR     A device whose driver adress is at UIC location
  146.  
  147. ╘≤23
  148. .]20    |the channel|control|family
  149.  
  150. Means are  provided within the SAM76 language interpreter to`
  151. reassociate these two groups with other devices  than  those`
  152. normally  assigned.  This  is independent of the assignments`
  153. that may be made using the "IOBYTE" if available; note  that`
  154. the  assignments  will  however  be  made within the general`
  155. framework of the IOBYTE setting as modified through  use  of`
  156. the "sio" set IO function.
  157.  
  158. Channel control functions are defined as follows:
  159.  
  160. Θ]22
  161. .[15    |Group 2
  162.  
  163. This group  of functions is normally initialized to interact`
  164. with  the  so  called  "Reader"  and  "Punch"  channels  {as`
  165. vectored  by  RI  and  PO}. Functions in this group are "it"`
  166. input text, "idt" input d texts, "ot" output text,  "xu,xmt"`
  167. xperimental  user  transmit,  and  "xu,rcv" xperimental user`
  168. receive.
  169.  
  170. SH21
  171. .[15    |Group 1
  172.  
  173. This group  of functions is normally initialized to interact`
  174. with the user console {as vectored by CI CS and  CO}.  These`
  175. functions  are:  "is" input string, "os" output string, "ic"`
  176. input character, "id" input  d  characters,  "im"  input  to`
  177. matching string, "vt" view text, "tm" trace mode.
  178.  
  179. >20
  180. .]20    Channel Control
  181.  
  182. A number  of the SAM76 language functions are concerned with`
  183. accepting or delivering data between the  SAM76  system  and`
  184. the  outside world. For convenience two communication groups`
  185. are defined and the initial assignments are as listed below:
  186.  
  187.