| reg | value | descr |
|---|---|---|
| AH | 0x4b | |
| AL | type of load | |
| DS:DX | ASCIIz program name (must include extentsion) | |
| ES:BX | parameter block (see below) |
| Offset | Size | Description |
|---|---|---|
| 0x00 | WORD | segment of environment to copy for child process (copy caller's environment if 0000h) |
| 0x02 | DWORD | pointer to command tail to be copied into child's PSP |
| 0x06 | DWORD | pointer to first FCB to be copied into child's PSP |
| 0x0A | DWORD | pointer to second FCB to be copied into child's PSP |
| 0x0E | DWORD | (AL=01h) will hold subprogram's initial SS:SP on return |
| 0x12 | DWORD | (AL=01h) will hold entry point (CS:IP) on return |
| Offset | Size | Description |
|---|---|---|
| 0x00 | WORD | segment at which to load overlay |
| 0x02 | WORD | relocation factor to apply to overlay if in .EXE format |
CL cleared if successfull
CL is set on error
BUG: DOS 2.00 assumes that DS points at the current program's PSP