en:docs:dos:api:int21:00

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:int21:00 [2018/09/05 04:02] – created prokusheven:docs:dos:api:int21:00 [2020/12/08 05:51] (current) prokushev
Line 1: Line 1:
-{{logos:dos.gif?35x35}}+{{page>en:templates:dosint}}
  
 ====== Int 21H, AH=00H ====== ====== Int 21H, AH=00H ======
Line 23: Line 23:
  
 never returns never returns
 +
 +===== Macro =====
 +
 +<code asm>
 +INCLUDE DOS.INC
 +
 +TERMINATE_PROGRAM
 +</code>
  
 ===== Notes ===== ===== Notes =====
  
-Microsoft recommends using INT 21/AH=4Ch for DOS 2+. This function sets the program's return code (ERRORLEVEL) to 00h. Execution continues at the address stored in INT 22 after DOS performs whatever cleanup it needs to do (restoring the INT 22,INT 23,INT 24 vectors from the PSP assumed to be located at offset 0000h in the segment indicated by the stack copy of CS, etc.). If the PSP is its own parent, the process's memory is not freed; if INT 22 additionally points into the terminating program, the process is effectively NOT terminated. Not supported by MS Windows 3.0 DOSX.EXE DOS extender +This function is obsolete. Use AH=[[en:docs:dos:api:int21:4c|INT 21/AH=4Ch]] instead. This function sets the program's return code (ERRORLEVEL) to 00h. Execution continues at the address stored in INT 22 after DOS performs whatever cleanup it needs to do (restoring the INT 22,INT 23,INT 24 vectors from the PSP assumed to be located at offset 0000h in the segment indicated by the stack copy of CS, etc.). If the PSP is its own parent, the process's memory is not freed; if INT 22 additionally points into the terminating program, the process is effectively NOT terminated. Not supported by MS Windows 3.0 DOSX.EXE DOS extender 
  
 ===== See also ===== ===== See also =====
  
-AH=4Ch,AH=26h,AH=31h, INT 20+AH=[[en:docs:dos:api:int21:4c|4CH]], AH=[[en:docs:dos:api:int21:26|26H]], AH=[[en:docs:dos:api:int21:31|31H]][[en:docs:dos:api:int20|INT 20]] 
  
 ===== Note ===== ===== Note =====