Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Peter Norton Programmer's Guide - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

  Function 4DH (decimal 77) gets the return code of a child program invoked
  with function 4BH and terminated with function 31H or 4CH. The information
  is returned in two parts. AL reports the return code issued by the child
  program; AH reports how the child program ended and has four possible
  values:

  .  AH = 00H indicates a normal voluntary end.

  .  AH = 01H indicates termination by DOS due to a keyboard break (Ctrl-C).

  .  AH = 02H indicates termination by DOS within a critical-error handler.

  .  AH = 03H indicates a voluntary end using a terminate-and-stay-resident
     service (interrupt 27H or function 31H).

  You should call this function only after you call function 4BH. Function
  4DH does not indicate an error if you call it when no previous child
  program has terminated. Also, you can call this function only once for
  each EXEC call. The second time you call it, you'll get garbage in AH and
  AL instead of return codes.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson