Outils pour utilisateurs

Outils du site


back2root:ibm-pc-ms-dos:interrupts:int_21:int_21_51

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
back2root:ibm-pc-ms-dos:interrupts:int_21:int_21_51 [2023/01/10 11:55] – supprimée - modification externe (Unknown date) 127.0.0.1back2root:ibm-pc-ms-dos:interrupts:int_21:int_21_51 [2024/04/08 01:03] (Version actuelle) – ↷ Liens modifiés en raison d'un déplacement. 185.191.171.14
Ligne 1: Ligne 1:
 +====== INT 0x21 - 0x51 - Get Current Process ID ======
 +
 +<WRAP round info>
 +Undocumented DOS 2.x
 +</WRAP>
 +
 +
 +===== Request/Call: =====
 +
 +{{tablelayout?rowsHeaderSource=Auto&colwidth=""}}
 +^  reg  ^  value  ^  descr  ^
 +|  AH    0x51           |
 +
 +===== Return: =====
 +
 +{{tablelayout?rowsHeaderSource=Auto&colwidth=""}}
 +^  reg  ^   descr  ^
 +|   BX  | process ID |
 +
 +===== Notes & Comments =====
 +
 +<WRAP round box>
 +  * The process ID number is actually the segment address of program's PSP. This in conjunction with [[back2root:ibm-pc-ms-dos:interrupts:int_21:int_21_50|INT 21,50]] is useful for TSR's to access their own file handle table in their respective [[back2root:ibm-pc-ms-dos:hardware:informations:program_segment_prefix|PSP]].
 +  * this function cannot be called while in an [[back2root:ibm-pc-ms-dos:interrupts:int_28:start|INT 28]] handler in DOS 2.x unless the critical error flag is set or stack corruption will occur
 +  * [[back2root:ibm-pc-ms-dos:interrupts:int_21:int_21_62|INT 21,62]] is highly recommended for DOS 3.x due to a possible bug when activated from a TSR. DOS may switch to the wrong internal stack which may cause a problems with TSR's if called during an INT 28.
 +
 +see [[back2root:ibm-pc-ms-dos:interrupts:int_21:int_21_62|INT 21,62]] (Get PSP segment) for DOS 3.x applications
 +</WRAP>
 + 
 +[[start|Back]]