qa.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Int 21H Function 4BH
   Summary  Notes  Example  Back
──────────────────────────────────────────────────────────────────────────────
 
  Description:  Execute Program (EXEC)
 
  Allows an application program to run another program, regaining control
  when it is finished. Can also be used to load overlays, although this
  use is uncommon.
 
  Input                                        Output
  ═════════════════════════════════            ════════════════════════════
  AH=4BH                                       If function successful
  AL=subfunction                               Carry flag=clear
     00H=Load and Execute Program              all registers except for CS:
     03H=Load Overlay                           IP may be destroyed
  ES:BX=segment:offset of parameter            [3.0+] registers are pre-
        block                                  served in the usual fashion
  DS:DX=segment:offset of program              If function unsuccessful
        specification                          Carry flag=set
                                               AX=error code
                                    -♦-