home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / assemblr / library / masmsubs / subs.doc < prev   
Text File  |  1987-07-27  |  1KB  |  28 lines

  1.     These three  files contain some handy subroutines that I  wrote a
  2.     while back for an abandoned project. I've used them several times
  3.     myself;  I know they work.  As written,  they'll work  unmodified
  4.     with  any  MASM-compatible assembly programs.  Although I haven't
  5.     done it myself,  they should  require minimal conversion  to work
  6.     with most popular languages (Pascal,  C, Basic).   In the case of
  7.     C, most compiler libraries already come with these functions, but
  8.     it is my opinion  that having working source code is  of inestim-
  9.     able value.
  10.  
  11. getenv.asm
  12.     Simple routine to fetch the value of an environment variable.
  13.  
  14. runprog.asm
  15.     Routine that uses the EXEC function to exectute an external prog-
  16.     ram.
  17.  
  18. doscmd.asm
  19.     Uses both of the above to load a copy of COMMAND.COM and, option-
  20.     ally, execute a DOS command. (getenv is used to get the value  of
  21.     COMSPEC).
  22.  
  23.     I hope that they can be as useful for others as they have been for
  24.     me.
  25.  
  26.     Aaron Brenner
  27.     CIS 73577,1500
  28.