home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / mbug / mbug037.arc / SYNONYM.DOC < prev    next >
Text File  |  1979-12-31  |  5KB  |  138 lines

  1.  
  2.           SYNONYM  Version 2.0  by: Bill Allen Sep 1981
  3.                                                            Page 1
  4.  
  5.  
  6.  
  7.  
  8.     SYNONY═ i≤ ß prograφ tha⌠ generate≤ ß program« Thi≤ generateΣ  
  9. prograφ  wheε executed¼á wil∞ invokσ  anothe≥ CP/═ command«á It'≤ 
  10. reall∙ no⌠ a≤ comple° a≤ i⌠ sounds« Herσ i≤ aε example║ Yo⌡ woulΣ 
  11. likσá t∩á  invokσ Microsof⌠ basiπ b∙ typinτ onl∙ thσá lette≥á "Bó 
  12. insteaΣ oµ typinτ  "MBASIC"«á  Yo⌡  coulΣ jus⌠  renamσ MBASIC.CO═ 
  13. t∩ B.CO═ bu⌠ yo⌡ coulΣ n∩ longe≥ use "MBASICó t∩ invokσ basic.
  14.  
  15.    SYNONY═á  caε    creatσ  ß  "B.COMó  filσ  tha⌠á wheεá invokeΣ 
  16. wil∞á modif∙ thσ CC╨ inpu⌠  buffe≥  t∩  "MBASICó  anΣ theεá  jum≡  
  17. t∩á  thσ CCP«á Thσ ne≈ .CO═ filσ i≤ ver∙ smal∞  (▒ block⌐  anΣ i≤ 
  18. saveΣ  witΦ  thσ  $SY╙ indicato≥ se⌠ (iε CP/═ 2.° ⌐  s∩ i⌠á won'⌠ 
  19. clutte≥á u≡ you≥ DIRectory«á Theε t∩ invokσ basiπ yo⌡ woulΣá onl∙ 
  20. havσ t∩ type║á "B"«á Yo⌡ coulΣ als∩  pas≤ basiπ  ß  prograφ  namσ  
  21. t∩á  executσá  jus⌠ a≤ witΦ MBASI├ b∙ typing║á "┬ BASPGMóá (wherσ  
  22. BASPG═  i≤  thσ namσ oµ thσ basic program).
  23.  
  24.    Yo⌡á caε als∩ creatσ ß SYNONY═ witΦ ß fixeΣ paramete≥á string« 
  25. Fo≥á examplσá yo⌡á migh⌠ likσ t∩ ruε  ßá  basiπá  prograφá calleΣ 
  26. STARTREK.BA╙á    b∙á typinτá "ST"«á SYNONY═á caεá creatσá ßá filσ 
  27. ("ST.COM"⌐á tha⌠ wil∞ invokσ  MBASI├ anΣ pas≤ i⌠ ßá fixeΣá strinτ 
  28. "STARTREK"«á Iµá yo⌡ d∩ creatσ ß SYNONY═ witΦ  ß  fixeΣ paramete≥  
  29. strinτá an∙ paramater≤ entereΣ oε thσ commanΣ linσ invokinτá  thσ  
  30. SYNONY═á  wil∞   bσ   appendeΣ  t∩  thσ  fixeΣá parameters«á Thi≤ 
  31. coulΣ bσ useΣ t∩ invokσ thσ SUBMI╘ program¼á pas≤ i⌠ thσ namσá oµ 
  32. thσ .SU┬ filσ a≤ ß fixeΣ parameter¼á  anΣ theε an∙ othe≥ variablσ 
  33. parameters.
  34.  
  35.  
  36.  
  37.                      SYNONYM COMMAND SYNTAX                     ______________________
  38.  
  39.           SYNONYM  newname  oldname  [parameter string]
  40.  
  41.           where:
  42.  
  43.           newnamσ  i≤ thσ namσ t∩ bσ useΣ a≤ ß synonym« I⌠ caε bσ 
  44.                    anythinτ acceptablσ  t∩ CP/═ a≤ a file name.
  45.  
  46.           oldnamσá i≤ thσ actua∞ namσ oµ thσ commanΣ t∩  bσá exe
  47.                    cuteΣ anΣ ma∙ includσ ß disδ letter.
  48.  
  49.           parameter string  is a fixed  string to be passed to the
  50.                             command« I⌠ i≤ optiona∞ anΣ an∙ para
  51.                             meter≤á entereΣá wheε thσ synonyφá i≤ 
  52.                             invokeΣ wil∞ bσ appended.
  53.  
  54.  
  55. è          SYNONYM  Version 2.0  by: Bill Allen Sep 1981
  56.                                                            Page 2
  57.  
  58.  
  59.  
  60.                     SYNONYM EXAMPLES:
  61.                     _________________
  62.  
  63.      Create  a  synonym "B" to invoke "MBASIC" (microsoft
  64. basic). The paramater  string  entered  on  the command line
  65. will be passed to MBASIC.
  66.  
  67.                     A>SYNONYM  B  MBASIC<cr>
  68.  
  69.                     example of use:  Invoke MBASIC and run "MYPROG"
  70.                     A>B MYPROG<cr>
  71.  
  72.  
  73.      Creatσá ß synonyφ "STó t∩ invokσ "MBASICó froφ thσá A║á disδ 
  74. anΣ pas≤ i⌠ thσ fixeΣ strinτ "STARTREK".
  75.  
  76.                     A>SYNONYM  ST  A:MBASIC STARTREK<cr>
  77.  
  78.                     examplσ oµ use║  Invokσ MBASI├ anΣ ruε "STAR
  79.                                      TREK"
  80.                     A>ST<cr>
  81.  
  82.  
  83.      Creatσ ß synonyφ "Tó t∩  invokσ  thσ  built-iε  CP/═ commanΣ 
  84. "TYPE".
  85.                     A>SYNONYM  T  TYPE<cr>
  86.                     example of use:  Type this file.
  87.  
  88.                     A>T SYNONYM.DOC<cr>
  89.  
  90.  
  91.      Creatσá  ßá synonyφ "Mó t∩ invokσ ß SU┬ filσá (MAC.SUB⌐á anΣ 
  92. pas≤ i⌠ thσ paramete≥ strinτ  entereΣ witΦ thσ ne≈ "M" command.
  93.  
  94.                     A>SYNONYM  M  A:SUBMIT A:MAC<cr>
  95.                     examplσ oµ use║  Submi⌠ MA├ anΣ pas≤ "ASMPRO╟ 
  96.                                      $SZ"
  97.  
  98.                     A>M ASMPROG $SZ<cr>
  99.  
  100.  
  101.      Obtaiεá HEL╨ witΦ thσ SYNONY═ commanΣ simila≥ t∩ thσ SYNONY═ 
  102. commanΣ synta° showε above.
  103.  
  104.                     A>SYNONYM ?<cr>     or    A>SYNONYM<cr>
  105.  
  106.  
  107.  
  108.  
  109. è         SYNONYM  Version 2.0  by: Bill Allen Sep 1981
  110.                                                            Page 3
  111.  
  112.  
  113.  
  114.  
  115.                     NOTES ON SYNONYM.ASM
  116.                     ____________________
  117.  
  118.      1. The program can be assembled with MAC or ASM.
  119.  
  120.      2. The  program has been tested on both CP/M version 1.4 and
  121.         version 2.x (The $SYS attribute is set only on 2.x).
  122.  
  123.      3. The subroutine  "XCTL"  could  easily  be  used  in other
  124.         programs that you would like to have transfer control  to
  125.         another CP/M command. It is self-contained except for the
  126.         call to VARMOV.
  127.  
  128.  
  129.  
  130.      Iµ  yo⌡ havσ an∙ problems¼ questions¼ suggestion≤ o≥ modifi
  131. cations╗ pleasσ leavσ ß  messagσ oε thσ TCBB╙ Dearborε (313⌐ 846-
  132. 612╖ o≥ cal∞ mσ durinτ busines≤  hour≤  at║  (313) 357-4800.
  133.  
  134.  
  135.                                         Enjoy,
  136.  
  137.                                         Bill Allen - 09/01/81
  138.