en:docs:dos:api:int21:4d

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:4d [2021/05/02 04:56] – created prokusheven:docs:dos:api:int21:4d [2024/05/03 02:20] (current) prokushev
Line 30: Line 30:
 ===== Notes ===== ===== Notes =====
  
- the word in which DOS stores the return code is cleared after being +the word in which DOS stores the return code is cleared after being read by this function, so the return code can only be retrieved once 
-   read by this function, so the return code can only be retrieved once + 
- COMMAND.COM stores the return code of the last external command it +COMMAND.COM stores the return code of the last external command it executed as ERRORLEVEL 
-   executed as ERRORLEVEL + 
- this call should not be used if the child was started with AX=4B04h; +this call should not be used if the child was started with AX=4B04h; use AH=8Ah instead 
-   use AH=8Ah instead + 
- the following sequence will close a Virtual DOS Machine under OS/2 2.0 +the [[en:docs:mvm:api:2|SVC function 2]] will close a Virtual DOS Machine under OS/2 2.0+. This call is the only way to close a specific VDM which was booted from floppy or a disk image.
-   through OS/2 Merlin (but may change in the future): +
-     MOV AH,4Dh +
-     INT 21h +
-     HLT +
-     DB 02h,0FDh +
-   This sequence is the only way to close a specific VDM which was +
-   booted from floppy or a disk image.+
                      
 ===== See also ===== ===== See also =====
  
- AH=4Bh,AH=4Ch,AH=8Ah+AH=[[en:docs:dos:api:int21:4b|4Bh]],AH=[[en:docs:dos:api:int21:4c|4Ch]]
  
 ===== Note ===== ===== Note =====