mov ax, 0AD80h ;Get KEYB.COM Version Number
int 2Fh ;Multiplex Interrupt
mov MajorV, bh ;major version number
mov MinorV, bl ;minor version number
Get KEYB.COM Version Number (Interrupt 2Fh Function 0AD80h) returns the major and minor version numbers for the Keyb program.
This function has no parameters.
The BX register contains a nonzero version number if the Keyb program has been loaded or zero if it has not.