DOS/32 Advanced DOS Extender - Programmer's Reference

2.30 - DPMI function 0400h - Get Version

Returns the version number of the DPMI Specification implemented by the DPMI host. Clients can use this information to determine which function calls are supported in the current environment.


In: AX = 0400h

CF clear
AL = DPMI minor version (binary)
AH = DPMI major version (binary)
BX = flags:

Bits Significance
0 0 = host is 16-bit DPMI implementation
1 = host is 32-bit (80386+) DPMI implementation
1 0 = CPU returned to V86 mode for reflected interrupts
1 = CPU returned to real mode for reflected interrupts
2 0 = virtual memory not supported
1 = virtual memory supported
3..15 reserved

CL = processor type:

03h = 80386
04h = 80486
05h = 80586 (Pentium)
06h = 80686 (Pentium Pro or Pentium II)
07h-FFh = reserved for future Intel processors

DL = current value of virtual slave PIC base interrupt
DH = current value of virtual master PIC base interrupt


a) 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).


Copyright Supernar Systems, Ltd. 1996-2005
All Rights Reserved.