The next example uses two code pages—one hardware and one prepared. In this instance, the system you are setting up uses the German code page provided in the EGA and the United States code page provided by DOS.
To the end of your CONFIG.SYS file, add the following on separate lines:
country=049,,c:\dos\country.sys device=c:\dos\display.sys con:=(ega,437,1) install=c:\dos\nlsfunc.exe c:\dos\country.sys
These CONFIG.SYS statements tell DOS that the hardware code page (437) in the Enhanced Graphics Adapter should be used, and that you are allocating space for one prepared code page. Also, they load memory-resident, national support functions.
To the end of your AUTOEXEC.BAT file, add the following exactly as shown (on separate lines):
mode con cp prep=((437)c:\dos\ega.cpi) keyb gr,,c:\dos\keyboard.sys chcp 437
These AUTOEXEC.BAT commands do the following:
Load prepared code page 850 into memory—they get the code page from the EGA.CPI file.
Load the German (gr) keyboard program.
Start the system with the United States (437) code page.