Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.

Latest commit

 

History

History

Q34454

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
layout title permalink
page
Q34454: MASM 5.10 MACRO.DOC: Process Control
/pubs/pc/reference/microsoft/kb/Q34454/

Q34454: MASM 5.10 MACRO.DOC: Process Control

Article: Q34454
Version(s): 5.10   | 5.10
Operating System: MS-DOS | OS/2
Flags: ENDUSER |
Last Modified: 12-JAN-1989

The following information was taken from the MASM 5.10 MACRO.DOC file.

PROCESS CONTROL

@Exit (4Ch)

Exits to DOS with return code

Syntax:         @Exit [#return]

Argument:       return      = 8-bit code to return to DOS; if
                              none given, AL is used
Return:         None
Registers used: AX

@Exec (4Bh)

Executes a child process or an overlay

Syntax:         @Exec path, params [,[segpath] [,[segparams]
                [,overlay]]]

Arguments:      path        = Offset of ASCIIZ filespec to be
                              executed
                params      = Offset of process parameter block
                segpath     = Segment of filespec (DS if none given)
                segparams   = Segment of parameter block (ES if none
                              given)
                overlay     = If not defined, normal process
                              executed; if defined, overlay executed
Return:         If carry set, error code
Registers used: AX, SI, and DI; DS and ES if corresponding
                segments given

@GetRet (4Dh)

Gets the return code of a child process

Syntax:         @GetRet

Argument:       None
Return:         Return code in AX
Register used:  AX

@TSR (31h)

Terminates a program, but leaves it resident in memory

Syntax:         @TSR paragraphs [,#return]

Arguments:      return      = Code to return to DOS; if none, AL
                              used
                paragraphs  = Memory in paragraphs (16 bytes) to
                              allocate for resident program
Return:         None
Registers used: AX and DX