Interrupt 20h DOS - Terminate Program (obsolete, see Int\21f\4C) entry no parameters return The following vectors are restored from the Program Segment Prefix: 0Ah Program Terminate 0Eh Control-C 12h Critical Error note Officially frowned upon since the introduction of DOS 2.0 This vector transfers to the logic in DOS to restore the terminate address, the Ctrl-Break address, and the critical error exit address to the values they had on entry to the program. All the file buffers are flushed and all handles are closed. You should close all files changed in length (see Int\21f\10 and Int\21f\3E) before issuing this interrupt. If the changed file is not closed, its length, time, and date are not recorded correctly in the directory. For a program to pass a completion code or an error code when terminating, it must use either Int\21f\4C (Terminate a Process) or Int\21f\31 (Terminate Process and Stay Resident). These two methods are preferred over using int 20h and the codes returned by them can be interrogated in batch processing. Important: Before you issue an interrupt 20h, your program must ensure that the CS register contains the segment of its program segment prefix. (see Int\27 -CS must point)
file: /Techref/INT/20.htm, 1KB, , updated: 1999/4/21 06:55, local time: 2024/12/24 21:44,
3.147.75.217:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.ecomorder.com/techref/INT/20.htm"> INT 20</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to massmind.ecomorder.com! |
.