home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / PROGRAM / MODULA / FSTCOMPI / LOADER.DEF < prev    next >
Text File  |  1993-12-01  |  1KB  |  27 lines

  1. DEFINITION MODULE Loader;
  2.  
  3. (* (C) Copyright 1987,1988 Fitted Software Tools. All rights reserved. *)
  4.  
  5.  
  6. PROCEDURE Execute( pgm :ARRAY OF CHAR; args :ARRAY OF CHAR;
  7.                    VAR exitcode :CARDINAL );
  8. (*
  9.     invokes pgm (full path name, please) passing along args.
  10.     On return:
  11.         exitcode < 32768:  Execute failed, exitcode is DOS error.
  12.         exitcode >= 32768: exitcode MOD 256 is pgm exit code.
  13.                            (exitcode-32768) DIV 256 is reason for
  14.                             termination (see DOS technical reference):
  15.                             0 = normal
  16.                             1 = by Control-C
  17.                             2 = critical device error
  18.                             3 = DOS function 31H (keep process)
  19.  
  20.     !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  21.     Execute tries to shrink the calling program's memory by
  22.     freeing up all memory above System.HeapTop.
  23.                                 ^^^^^^^^^^^^^^
  24.     The called program MUST NOT terminate and stay resident!
  25. *)
  26.  
  27. END Loader.