Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>function 66h (102) get or set global code page . dos 3.3</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 66h (102)        Get or Set Global Code Page               . DOS 3.3

     Gets or sets Global Code Page.

     To get the Global Code page:

          On entry:      AH         66h
                         AL         01h . Get global code page

          Returns:       BX         Global code page
                         DX         DOS system code page


     To set Global Code page:

          On entry:      AH         66h
                         AL         02h . Set global code page
                         BX         Global code page

  ---------------------------------------------------------------------------

     This function gets or sets the code page for the current country.
     Subfunction 01h returns the number of the current code page in BX,
     and the number of the code page that was active on boot in DX.

     Subfunction 02h lets you set the current code page. Pass the number
     of the new code page in BX. DOS moves the code page data from the
     COUNTRY.SYS file into an internal buffer. If DOS cannot find the required
     information in that file, it returns an error of 2 in AX.

     DOS attempts to switch all devices set up for code page switching to the
     new code page. If it is unsuccessful, it returns an error code of 65 in
     AX.

        Notes:        The NLSFUNC DOS extension must be installed for
                      this function to work properly.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson