home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / jsage / zsus / z3help / b.lbr / BA.HZP / BA.HLP
Encoding:
Text File  |  1991-11-18  |  10.8 KB  |  297 lines

  1. ;
  2.                                Program BA (Build Alias)
  3.  
  4.                            I- Introduction               
  5.                            F- BA Features                
  6.                            U- Using BA                   
  7.                            C- Call Syntax                
  8.                            S- Getting Started            
  9.                            W- Warnings and Cautions      
  10.                            H- Hints                      
  11.                            D- Display Management         
  12.                            N- File Name Syntax           
  13.                            T- Technical                  
  14.                            O- Operating System Interface 
  15.                            R- Restrictions               
  16.                            Z- Acknowledgements           
  17. :I
  18.  
  19.  Introduction: 
  20.  
  21.  
  22.    BA (Build Alias) is  a Z-System tool  that  lets  you  develop  and upgrade
  23. aliases with your favorite editor.   No more wondering "what do I do now" when
  24. bringing up a utility with yet another set of editing commands.
  25.  
  26.    The alias commands are  kept in an ASCII text (non-DOC) file.   BA combines
  27. them with an alias skeleton to make an alias.COM file with the new
  28. commands.
  29. :F
  30.  
  31.  BA Features: 
  32.  
  33.    o ZCPR3 environment is supported, but not needed.
  34.    o Restartable; BA can re re-executed with the system GO command.
  35.    o The default alias script file type is "CMD;" the user may supply another.
  36.    o Ambiguous script file names accepted; update all aliases at one run.
  37.    o The CP/M file format of blanks packed to tabs is accepted.
  38.    o Command script may be on separate lines or separated by semicolons.
  39.    o Script lines with a semicolon in column one are retained as comments.
  40.    o Both the old and the new aliases are displayed for reference.
  41.    o The CRC of the new alias file is displayed for reference.
  42.    o The size of the alias is displayed in two forms - 
  43.        how many characters are from the scriptfile;
  44.        how many characters would result if all $-fields are fully expanded.
  45.    o These counts are compared with the length of the Command Line Buffer to
  46.        warn you of an impending operational overflow.
  47.    o The pointer to the Environment table is corrected if necessary.
  48.    o The pointer to the Command Line Buffer is corrected if necessary.
  49. :U
  50.  
  51.  Using BA: 
  52.  
  53.  
  54.    Develop the commands to be incorporated into an  alias into a command file,
  55. such  as scriptfile.CMD.   Formats of  a separate command per line or multiple 
  56. commands per line,  separated  by  semicolons,  are accepted.   Lines  with  a 
  57. semicolon in column one are retained as comments.
  58.  
  59. The data flow is -
  60.  
  61.       scriptfile.CMD
  62.           \
  63.         \
  64.           BA ==> scriptfile.COM
  65.         /
  66.            /
  67.       oldalias.COM or DUMMY.COM
  68. :C
  69.  
  70.  Call Syntax: 
  71.  
  72.    BA<cr>
  73. The scriptfile name is requested from the console.  The skeleton alias is read 
  74. from DUMMY.COM.  The new alias is written to scriptfile.COM.
  75.  
  76.    BA scriptfile /options<cr>
  77. Commmands are read  from scriptfile.CMD.   The  skeleton  alias  is  read from
  78. scriptfile.COM or DUMMY.COM.  The new alias is written to scriptfile.COM.
  79.  
  80.    BA scriptfile oldalias /options<cr>
  81. Commmands are read  from scriptfile.CMD.   The  skeleton  alias  is  read from
  82. oldalias.COM.  The new alias is written to scriptfile.COM.
  83.  
  84.    BA //<cr>
  85. Display on-line help.
  86.  
  87. For all call formats, the scriptfile will will be supplied a type of CMD and 
  88. the aliasfile will will be supplied a type of COM as needed.  
  89.  
  90.  
  91.  
  92.  Call Syntax (cont'd): 
  93.  
  94.  
  95. Program options -
  96.    F - Display flow control, resume on any character.
  97.    Z - Enable additional program messages.
  98. :S
  99.  
  100.  Getting Started: 
  101.  
  102.    Begin by making  a default oldalias skeleton,  named DUMMY.COM.   Make this
  103. file with  an ALIAS call  and  a  one line  command which will be overwritten.
  104. Keep DUMMY.COM in the directory that BA will be running in, as BA will request
  105. it if there is no old alias available.
  106.  
  107.    Create a file of your alias commands in a lfn.CMD file.
  108.  
  109.    Run BA with the following call -
  110.    BA lfn<cr>
  111.  
  112. This will make a lfn.COM file that is your new alias.
  113.  
  114.  
  115.  Getting Started (cont'd): 
  116.  
  117.    Note - A DUMMY.COM alias file  is supplied on  the release diskette.   This
  118. file is  from  a  system  with  the  Environment  table  at  0E6F0.   If  your
  119. Environment table is  NOT at this  address,  BA will  install  the  pointer at
  120. address 0109.
  121.  
  122.    Note - The alias to start up a system without the current environment table
  123. installed must have the  current address  of  the Command Line Buffer  patched 
  124. into it.   BA  will install the  CLB pointer per the running system.   If your 
  125. target system is  different,  use your debugger to set address 0369 to the CLB 
  126. address.
  127.  
  128.    Above as of ALIAS 1.1; see Technical to change these addresses.
  129. :W
  130.  
  131.  Warnings and Cautions: 
  132.  
  133.    A  caution  message  is  displayed  if  the  number  of  characters  from $ 
  134. parameters  being  fully expanded might  exceed the length of the Command Line 
  135. Buffer.  This estimate is based on the following assumptions -
  136.     $$ is assumed to be 1 character.
  137.     $n is assumed to be 12 characters.
  138.    .$n is assumed to be 3 characters.
  139.    $Fn is assumed to be 12 characters
  140.    $Nn is assumed to be 8 characters.
  141.    $Tn is assumed to be 3 characters.
  142.  
  143.    A  warning message is  displayed if the  number of characters in  the alias
  144. script does exceed the length  of the Command Line Buffer.   The alias file is 
  145. NOT written.  If processing ambiguous scripts, BA reverts to DUMMY.COM for the
  146. oldalias file with the next alias.
  147. :H
  148.  
  149.  Hints: 
  150.  
  151.    An alias to update an alias is -
  152.       EDIT $1.CMD;BA $1<cr>
  153.  
  154.    Having the alias commands in  a separate text file is especially useful for
  155. both program development and for the final documentation.   For example,  when 
  156. developing  a Menu system that  calls several aliases,  put the  text  of each 
  157. alias into a screen and you have immediate access to the logic.   And when the 
  158. project is  operational,  include the  alias  text into  the documentation and 
  159. voila` - instant and up-to-date documentation.
  160.  
  161.    Use I/O redirection  or your print screen  capability to capture the screen
  162. display of a BA run;  the CRC is available to uniquely identify the alias file 
  163. later on.
  164. :D
  165.  
  166.  Display Management: 
  167.  
  168.    The display  driver  recognizes  XOFF (a Control-S)  to  stop  the display.
  169. Unless the option F is specified, an XON (Control-Q) is necessary to continue.
  170. For the option F, any keyboard character will resume the display.  A Control-C
  171. will abort the program.
  172.  
  173.    During  a file name input request from  the console,  the following editing
  174. controls are available -
  175.    Backspace - erase the previous character.
  176.    Control-C - abort the execution.
  177.    Control-V - enter the following character literally.
  178.    Control-X - erase all entered data.
  179.    Carriage Return - end the field.
  180. :N
  181.  
  182.  File Name Syntax: 
  183.  
  184.    File names may be specified with any of the following forms -
  185.       name.ext - current user, current disk, file name.ext.
  186.       d:name.ext - current user, disk d, file name.ext.
  187.       u:name.ext - current disk, user u, file name.ext.
  188.       du:name.ext - disk d, user u, file name.ext.
  189.    On systems with ZCPR3 -
  190.       ndir:name.ext - named directory ndir, file name.ext.
  191.  
  192.    If disk "Z:" is assigned to  a BA file,  all data written to that file will
  193. be discarded.
  194.  
  195.  
  196.  File Names (cont'd): 
  197.  
  198.    During  a file name input  request from the console,  the following editing
  199. controls are available -
  200.    Backspace - erase the previous character.
  201.    Control-C - abort the execution.
  202.    Control-V - enter the following character literally.
  203.    Control-X - erase all entered data.
  204.    Carriage Return - end the field.
  205.  
  206.    The scriptfile may be an ambiguous specification.  For example,
  207.       BA *<cr>
  208.    will create/update all aliases in the current directory.
  209.  
  210. The new alias goes to the disk/user the scriptfile came from.
  211. :O
  212.  
  213.  Operating System Interface: 
  214.  
  215.    BA  operates  on  unmodified  CP/M  without  change.      It  installs  itself
  216. automatically on versions of ZCPR3 and the Z-System.   Since  the self-install 
  217. procedure may be incompatible with some or future systems,  the following is a
  218. brief description and a program change to defeat it.
  219.  
  220.    For the Z-System,  program  address 0109h points  to  an environment table.
  221. The newer versions of ZCPR3 update this  address when  the program is  loaded.  
  222. Or,  with the older versions of ZCPR3, the user must update this address, such 
  223. as with Z3INS.
  224.  
  225.    BA validates that  0109h points to  an environment table.   But if  none is
  226. found at that address,  BA scans for an environment table from the fwa(DOS) to 
  227. 0FF40h.
  228.  
  229.    If this scan  causes problems,  install  BA with  Z3INS for your system and
  230. disable the scan with the environment table scan control (see Technical).
  231.  
  232.  
  233.  Operating System Interface (cont'd): 
  234.  
  235.    BA requires CP/M 2.0  or greater  for correct operation.   This requirement
  236. may be defeated by the system version check control (see Technical).
  237. :T
  238.  
  239.  Technical: 
  240.  
  241. The following locations can be user patched -
  242.  
  243.    013C    Alias skeleton file name  00-byte termination.
  244.    0156    Alias identification string.           [Z3ENV]
  245.    015C    Default script extension.              [CMD]
  246.    015F    Default alias extension.              [COM]
  247.    0162    Default offset of the script in an alias.  [001Ch]
  248.    0164    Length of an alias file.              [0400h]
  249.    0166    Default offset of the Environment pointer. [0009h]
  250.    0168    Default offset of the CLB pointer.          [0269h]
  251.    016A    Default size of the CLB.              [00C0h]
  252.  
  253.  
  254.  Technical (cont'd): 
  255.  
  256. Default option values; values can be zero or non-zero:
  257.  
  258.    016C    F-option, zero = resume display on any character.
  259.    016E    Z-option, zero = no detail messages.
  260.    016F    Environment table scan control, zero = do scan.
  261.    0170    System version check control, zero = do check.
  262.  
  263. The presence of the option letter in the command tail reverses the
  264. default.
  265. :R
  266.  
  267.  Restrictions:
  268.   
  269.    CP/M 2.0 or greater or equivalent operating system required.
  270.  
  271.    Z80 or equivalent computer is required.
  272.  
  273.    32 user areas/named directories can be accessed.
  274.  
  275.    16 disk drives (Drives A...P) can be referenced.
  276.  
  277.    If the System Environment table cannot be found, the message -
  278.       Not a ZCPR3 System.
  279.    is displayed and  a default Command Line  Buffer  length  of  192 bytes  is
  280.    assumed.
  281.  
  282.    The skeleton alias must have 'Z3ENV' at the standard location  of 0103h and
  283.    be exactly 0400h bytes long.
  284. :Z
  285.  
  286.  Acknowledgements: 
  287.  
  288. Trademarks -
  289.     BA: Skunk Creek Computing Services
  290.     CP/M: Digital Research, Inc.
  291.     Z80: Zilog, Inc.
  292.     Z-System, ZCPR3: Echelon, Inc.
  293.  
  294.  
  295. Copyright (c) 1985, 1988 Skunk Creek Computing Services
  296. 88/10/14
  297.