en:docs:dos:api:int20

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:docs:dos:api:int20 [2018/09/04 16:53] – created prokusheven:docs:dos:api:int20 [2020/12/08 05:47] (current) – [Macro] prokushev
Line 1: Line 1:
-{{logos:dos.gif?35x35}}+{{page>en:templates:dosint}}
  
 ====== Int 20H ====== ====== Int 20H ======
  
-===== AH=4C =====+===== Version ===== 
 + 
 +1 and higher 
 + 
 +===== Brief ===== 
 + 
 +TERMINATE PROGRAM 
 + 
 +===== Family API ===== 
 + 
 +[[en:docs:fapi:DosExit]] 
 + 
 +===== Input ===== 
 + 
 +  CS = PSP segment 
 + 
 +===== Return ===== 
 + 
 +Never return 
 + 
 +===== Macro ===== 
 + 
 +<code asm> 
 +INCLUDE DOS.INC 
 + 
 +TERMINATE 
 +</code> 
 +===== Notes ===== 
 + 
 +Function is obsolete. Use [[en:docs:dos:api:int21:4c|INT 21/AH=4Ch]] instead 
 + 
 +This function sets the program's return code (ERRORLEVEL) to 00h 
 + 
 +===== See Also ===== 
 + 
 +[[en:docs:dos:api:int21:00|INT 21/AH=00h]] [[en:docs:dos:api:int21:4c|INT 21/AH=4Ch]] 
 + 
 +===== Note ===== 
 + 
 +Text based on [[http://www.cs.cmu.edu/~ralf/files.html|Ralf Brown Interrupt List Release 61]] 
 + 
 +{{page>en:templates:int}} 
 + 
 +{{page>en:templates:fapi}}
  
-INT 21 - DOS 2+ - "EXIT" - TERMINATE WITH RETURN CODE 
-        AH = 4Ch 
-        AL = return code 
-Return: never returns 
-Notes:  unless the process is its own parent 
-          (see #01378 [offset 16h] at AH=26h), all open files are closed and 
-          all memory belonging to the process is freed 
-        all network file locks should be removed before calling this function 
-SeeAlso: AH=00h,AH=26h,AH=4Bh,AH=4Dh,INT 15/AH=12h/BH=02h,INT 20,INT 22 
-SeeAlso: INT 60/DI=0601h