home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / simtel / sigm / vols000 / vol053 / s.doc < prev    next >
Text File  |  1984-04-29  |  1KB  |  40 lines

  1. "S.COM" is an example of the use of SAM76 in autorun
  2. mode of operation. In effect "S.COM" is nothing
  3. more than (in this case ILRAW primed with CPMSETL)
  4. a version of the SAM76 interpreter which has been
  5. reloaded prior to saving with a script written to
  6. recognize a command string and act on it.
  7.  
  8. Procedure is as follows:
  9.  
  10. 1. Bring in a copy of SAM76, either through the
  11. sequence ZLRAW/ILRAW and CPMSETL/ZAPSETL or if you
  12. prefer just S.
  13.  
  14. 2. Bring the file "G.SAM" thus:
  15.  
  16. %bf,g.sam/=
  17.  
  18. 3. Examine the text "G" that has been brought in
  19. and desirably analyze it - use %vt,G/=.
  20.  
  21. 4. Execute G thus:    %G/=
  22.  
  23. 5. This will take you back to the operating system
  24. and now save the file thus:  SAVE 63 xxx.COM.
  25.  
  26. Use of xxx.COM allows you to specify a command string
  27. which is examined by "G" in the following manner:
  28.  
  29. xxx yyy drive
  30.  
  31. where xxx is the name of the file you saved,
  32. and  yyy is a file (yyy.sam) which contains the script
  33. you wish to invoke, the first of which must be named
  34. upper case "A" (at least as long as you do not change G).
  35. and drive is the drive number on which yyy.sam exists.
  36.  
  37. If you omit drive, then drive 0 is assumed, if you omit
  38. yyy then you will get SAM76 in its normal form.
  39.  
  40.