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 07:55, local time: 2024/8/14 14:15,
18.191.208.128: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://piclist.com/techref/int/20.htm"> int 20</A> |
Did you find what you needed? |
![]() o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232! |
.