mov bx, CodePageID ;new code page
mov ax, 0AD81h ;Set KEYB.COM Active Code Page
int 2Fh ;Multiplex Interrupt
jc error_handler
Set KEYB.COM Active Code Page (Interrupt 2Fh Function 0AD81h) sets the active code page for KEYB.COM to the specified code page.
CodePageID
Identifies the code page. This parameter can be one of the following values:
Value | Meaning |
437 | United States |
850 | Multilingual (Latin I) |
852 | Slavic (Latin II) |
860 | Portuguese |
863 | Canadian-French |
865 | Nordic |
If the function is successful, the carry flag is clear. Otherwise, the carry flag is set and the AX register contains 0001h if the code page is not valid.