Function 4B05h Set Execution State DOS 5.0+
Prepares a new program for execution. This preparation includes
setting the version number for the program as specified by the
SETVER command.
Entry AX = 4B05h
DS:DX = Pointer to an ExecState structure
Return Nothing
or
AX = Error code, if CF is set
| ??
──────────────────────────────────────────────────────────────────
This function is required for programs that intercept function
4B00h (EXEC).
After the function returns, the calling program must transfer
execution control to the new program as soon as possible. In
particular, before starting the new program, the calling program
must not call DOS system functions, ROM BIOS functions, or system
interrupts.
When DOS is installed in the high-memory area (HMA), this function
turns off the A20 line, making the HMA inaccessible. If the new
program must have access to the HMA, the program must turn on the
A20 line. Note that MS-DOS automatically turns on the A20 line
(and usually leaves it on) when carrying out other system
functions.