Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
en:docs:dpmi:api:int2f:16:87 [2021/08/13 14:15] – created prokushev | en:docs:dpmi:api:int2f:16:87 [2021/11/16 11:20] – prokushev | ||
---|---|---|---|
Line 13: | Line 13: | ||
===== Input ===== | ===== Input ===== | ||
- | AX = 1687h | + | * AX = 1687h |
===== Return ===== | ===== Return ===== | ||
Line 21: | Line 21: | ||
BX = flags | BX = flags | ||
- | | + | ^ Bit ^ Significance |
- | 0 0 = 32-bit programs are not supported | + | | 0 | 0 = 32-bit programs are not supported |
- | 1 = 32-bit programs are supported | + | |:::| 1 = 32-bit programs are supported |
- | 1-15 not used | + | | 1-15 | not used | |
CL = processor type | CL = processor type | ||
- | | + | |
- | 02H 80286 | + | ^ Value ^ Significance |
- | 03H 80386 | + | | 02H | 80286 | |
- | 04H 80486 | + | | 03H | 80386 | |
- | 05H-FFH Reserved for future Intel processors | + | | 04H | 80486 | |
+ | | 05H-FFH | ||
DH = DPMI major version as a decimal number (represented in binary) | DH = DPMI major version as a decimal number (represented in binary) | ||
DL = DPMI minor version as a decimal number (represented in binary) | DL = DPMI minor version as a decimal number (represented in binary) | ||
Line 42: | Line 45: | ||
This function can be called in real mode only to test for the presence of a DPMI host, and to obtain an address of a mode switch routine that can be called to begin execution in protected mode. | This function can be called in real mode only to test for the presence of a DPMI host, and to obtain an address of a mode switch routine that can be called to begin execution in protected mode. | ||
- | The entry point returned by Int 2FH Function 1687H is only called for the first switch to protected mode by a DPMI client. For further details on the protocol for switching to protected mode and the environment after switching to protected mode, see that page. | + | The entry point returned by Int 2FH Function 1687H is only called for the first switch to protected mode by a DPMI client. For further details on the protocol for switching to protected mode and the environment after switching to protected mode, see [[en: |
Under DPMI hosts, the major version number is returned in DH and the minor version number is returned in DL. There are two decimal digits for the minor version number with the least-significant digit representing the revision number of the minor version number. Under DPMI version 0.9 hosts, DH is returned as 0, and DL is returned as decimal 90 (5AH). In hypothetical DPMI version 2.3, DH would be returned as 2 and DL would be returned as 30 (1EH). | Under DPMI hosts, the major version number is returned in DH and the minor version number is returned in DL. There are two decimal digits for the minor version number with the least-significant digit representing the revision number of the minor version number. Under DPMI version 0.9 hosts, DH is returned as 0, and DL is returned as decimal 90 (5AH). In hypothetical DPMI version 2.3, DH would be returned as 2 and DL would be returned as 30 (1EH). | ||
- | |||
- | | ||
===== See also ===== | ===== See also ===== | ||
- | + | ||
===== Note ===== | ===== Note ===== |