How to Use Int 20h to Terminate an .EXE Program (72848)
The information in this article applies to:
- Microsoft Macro Assembler (MASM) 5.0
- Microsoft Macro Assembler (MASM) 5.1
- Microsoft Macro Assembler (MASM) 5.1a
- Microsoft Macro Assembler (MASM) 6.0
- Microsoft Macro Assembler (MASM) 6.0a
- Microsoft Macro Assembler (MASM) 6.0b
This article was previously published under Q72848 SUMMARY
When terminating a program executed as an .EXE file, it is recommended
that function 4Ch of interrupt 21h be used, rather than interrupt 20h.
Unfortunately, function 4Ch is not available on versions of MS-DOS
earlier than 2.0. If the use of Int 20h is required, then it is
important to be sure that the CS register points to the beginning of
the PSP (program segment prefix).
Modification Type: | Minor | Last Reviewed: | 11/15/2003 |
---|
Keywords: | KB72848 |
---|
|