Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Int 21h Function 66h
 Detail                                    Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Interrupt:   21h     Function:   66h
 
  Title:       Get or Set Code Page [Version 3.3+]
 
  Description:
 
     Obtains or selects the current code page.
 
     Input                           Output
 
     AH = 66h                        If function successful
     AL = Subfunction                  Carry flag: clear
          01h = Get Code Page        And if called with AL = 01h
          02h = Select Code Page       BX = Active code page
     BX = Code page to select          DX = Default code page
          if AL = 02h
                                     If function unsuccessful
                                       Carry flag: set
                                       AX = Error code (02h or 65h)
                                       See: Error codes
                                    -♦-