Assembly Language Help (alang.hlp) (Table of Contents; Topic list)
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
                                    -♦-