TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: ROBERT HORNE
from: BRIAN MCCLOUD
date: 1997-05-01 13:31:00
subject: External Programs

RH>Hi all!  Can somebody tell me how to execute external programs, such as 
XE
o
RH>COM files in assembler?  I have a reference, but I couldn't get it to 
ork.
RH>Thanks for any help!
int 21h function 4Bh
"EXEC" - Load and/or execute program
Accepts:
AH = 4Bh
AL = type of load
  00h load and execute
  01h load but do not execute
  03h load overlay
DS:DX -> ASCIZ program name (including extension)
ES:BX -> parameter block
  for subfunctions 00h, 01h:
  Offset Size   Description
  00h    WORD   segment of environment to copy for child process (0000h = 
opy
                  caller's environment)
  02h    DWORD  pointer to command tail to be copied into child's PSP
  06h    DWORD  pointer to first FCB to be copied into child's PSP
  0Ah    DWORD  pointer to second FCB to be copied into child's PSP
  0Eh    DWORD  (AL=01h) will hold suprogram's initial SS:SP on return
  12h    DWORD  (AL=01h) will hold entry point (CS:IP) on return
Returns:
CF clear if successful
  BX, DX destroyed
  if subfunction 01h, process ID set to new program's PSP; get with int 21h
    function 62h
CF set on error
  AX = error code
(information is from "PC Interrupts" by Ralf Brown & Jim Kyle)
((Cloud))
MauveCloud@juno.com
 * OLX 2.2 * How dieth the wise man? As the fool.
--- PCBoard (R) v15.3/M 10
---------------
* Origin: Next time, Dial The Wrong Number! (209) 943-1880 (1:208/205)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.