⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chips.txt

📁 比较详尽的VGA端口寄存器的文档
💻 TXT
📖 第 1 页 / 共 4 页
字号:

3d6h index 69h  (R/W): Vertical Panel Size Register.              (655x0 only)
bit 0-7  Vertical Panel Size. Number of scan lines per frame.

3d6h index 69h  (R/W): Flat Panel Vertical Display Start_350 (82c455/6/7 only)
bit 0-7  For 350 line Flat Panel modes these are the lower 8 bits of the
         Vertical Display Start (in scanlines). The upper 2 bits are in the
         Flat Panel Vertical Overflow 2 Register (3d6h index 6Bh) bits 0-1.

3d6h index 6Ah  (R/W): Flat Panel Vertical Display End_350   (82c455/6/7 only)
bit 0-7  For 350 line Flat Panel modes these are the lower 8 bits of the
         Vertical Display End (in scanlines). The upper 2 bits are in the
         Flat Panel Vertical Overflow 2 Register (3d6h index 6Bh) bits 4-5.

3d6h index 6Bh  (R/W): Flat Panel Vertical Overflow 2        (82c455/6/7 only)
bit 0-1  Bits 8-9 of the Vertical Display Start_350 Register (3d6h index 69h)
    2-3  Bits 8-9 of the Vertical Display Start_400 Register (3d6h index 5Ah)
    4-5  Bits 8-9 of the Vertical Display End_350 Register (3d6h index 6Ah)
    6-7  Bits 8-9 of the Vertical Display End_400 Register (3d6h index 5Bh)

3d6h index 6Ch  (R/W): Weight Clock Control Register         (82c455/6/7 only)
bit 0-5  Weight Clock Control Pulse Count.
         Total number of pulses on the Weight Clock.
         See Also 3d6h index 5Ch and 5Dh.

3d6h index 6Ch  (R/w): Programmable Output Drive Register         (655x0 only)
bit   0  Input Level Sense Selection Mode.
         If set bit 1 is used to determine input threshold.
         If clear chip detects VCC voltage internally.
      1  Input Level Sense Selection Voltage.
         If set VCC for internal logic is 3.3V, if clear it is 5V.
      2  Flat Panel Interface Output Drive Select
         If set Higher drive, if clear Lower drive.
      3  Bus Interface Output Drive Select.
         If set Higher drive, if clear Lower drive.
      4  Memory Interface output Drive Select.
         If set Higher drive, if clear Lower drive.

3d6h index 6Dh  (R/W): FRC and Palette Control                 (82c456/7 Only)
bit   3  Enable Frame Rate Control
    4-5  Maximum number of grey levels.
           0: 64 level FRC
           1: 16 level FRC with dither for 256 color modes.
           2: 64 level FRC with dither for low grey levels.
           3: 16 level FRC only.
    6-7  Usage of External Palette:
           0: Bypass
           1: Bypass for 16 color modes, use for 256 color.
           2: Always use
           3: 16 grays for 16 color modes, 64 for 256 color.

3d6h index 6Eh (R/W):  Polynomial FRC Control           (82c456/7, 655x0 Only)
bit 0-3  Polynomial N value for Frame Rate Control
    4-7  Polynomial M value.

3d6h index 6Fh (R/W):  Frame Buffer Control register              (655x0 only)
bit   0  Frame Buffer Enable. External Frame Buffer enabled if set.
      1  Frame Accelerator enabled if set.
      2  Frame Buffer memory Type.
         If set Frame Buffer consists of 256Kx4 VRAM.
         If clear Frame Buffer consists of 64Kx4 VRAM
    3-5  Frame Buffer Refresh Count.
    6-7  Reserved. Must be set to 0.
Note: This register effective in Flat Panel mode only.

3d6h index 70h (R/W):  Setup/Disable Control Register.            (655x0 only)
bit   7  3C3/46E8 Register Disabled if set.

3d6h index 7Dh (R/W):  FP Compensation Diagnostic Register        (655x0 only)
bit 0-7  Reserved. returns 0.

3d6h index 7Eh (R/W):  CGA Color Select
     This is a copy of the CGA Color Select Register at 3D9h.
     The copy at 3D9h is only visible in CGA emulation mode.
     This register is always visible.

3d6h index 7Fh (R/W):  Diagnostic
bit   0  if set 3-states pins: PALRD/, PALWR/, WR46E8/, HSYNC, VSYNC,
         ACDCLK, BLANK/, P0-7, RDY, DATEN/ AND IRQ/.
      1  If set 3-states pins: WE/, RAS/, CAS0/, CAS1/,
         CAS2/, CAS3/, AA0-7 AND BA0-7.
    2-5  Test Function Pins. Should be 0.
      6  (655x0) Test Function Enabled if set.
      7  (655x0) Special Test Function. Should be set to 0.

3dAh (W):  Feature Control Register                                 (82c45x ?)
bit 0-1  If 3C2h/3CCh bits 2-3 is 2, this field selects one of 4 clocks
Note: This is an extension of a standard VGA register, see VGA.TXT for
      other fields in this register. This register can be read at 3DAh

46E8h (R/W):  Setup Control PC/AT Register
bit 0-2  Reserved
      3  Enables Adapter VGA if set
      4  Enters Setup Mode if set
    5-7  Reserved
Note: This is the same register as 94h.


Most every index of 3d6h is used by one or more Chips&Tech chip.


Bank Switching:

Bank switching is dependent on Chip version:

                              16 color modes       256 color modes
   Chip         #bank regs   #Banks Granularity   #banks Granularity
   82c451/5/6      1                                  4    64Kbytes
   82c452          2            64     4Kbytes       64    16Kbytes
   82c453/0 and
   F655xx          2           256     1Kbytes      256     4Kbytes

    For the 82c450,2,3 and F655xx the window to display memory can start on
    any boundary fitting the granularity of the chip/display mode. When using
    2 bank registers, the address range available to the adapter is split
    equally between the two bank registers. I.e. A000h-A7FFh uses one bank,
    and A800h-AFFFh the other. (Or A000h-AFFFh and B000h-BFFFh respectively if
    using the full 128 Kbytes range).



  ID Chips and Technologies Chip Set:

  vio($5F00);
  if rp.al=$5F then
    case rp.bl shr 4 of
      0:Chip&Tech 82c451 !!!
      1:Chip&Tech 82c452 !!!
      2:Chip&Tech 82c455 !!!
      3:Chip&Tech 82c453 !!!
      4:Chip&Tech 82c450 !!!
      5:Chip&Tech 82c456 !!!
      6:Chip&Tech 82c457 !!!
      7:Chip&Tech F65520 !!!
      8:Chip&Tech F65530 !!!
      9:Chip&Tech F65510 !!!
    end;



  Video Modes:

   20h G  640  480   16  PK4  64300
   22h G  800  600   16  PK4  64300
   24h G 1024  768   16  PK4  64300
   28h G 1280 1024   16  PK4  64300
   30h G  640  480  256  P8   64300
   32h G  800  600  256  P8   64300
   34h G 1024  768  256  P8   64300
   38h G 1280 1024  256  P8   64300
   40h G  640  480  32k  P15  64300
   41h G  640  480  64k  P16  64300
   42h G  800  600  32k  P15  64300
   43h G  800  600  64k  P16  64300
   44h G 1024  768  32k  P15  64300
   45h G 1024  768  64k  P16  64300
   50h G  640  480  16m  P24  64300
   60h T  132   25   16  (8x16)
   61h T  132   50   16  (8x8)
   6Ah G  800  600   16  PL4
   70h G  800  600   16  PL4
   71h G  960  720   16  PL4   Cardinal only!
   72h G 1024  768   16  PL4
   73h G 1280 1024   16  PL4   F655xx only
   74h G 1280  960   16  PL4   F655xx only
   75h G 1024  768   16  PL4   64300
   76h G 1280 1024   16  PL4   64300
   78h G  640  400  256  P8    Not documented/not all boards
   79h G  640  480  256  P8
   7Ah G  720  540  256  P8    Not documented/not all boards
   7Bh G  800  600  256  P8
   7Ch G  800  600  256  P8    (82c453,F655xx Only)
   7Eh G 1024  768  256  P8    (82c453,F655xx Only)

  Bios Extensions:
----------105F00-----------------------------
INT 10 - Get Controller Information       (Chips and Technologies Super VGA)
        AX = 5F00h
Return: AL = 5F  If extended VGA control function supported
        BL = CHIP Type:
             Bits 4-7  Chip version:
               0: 82c451
               1: 82c452
               2: 82c455
               3: 82c453
               4: 82c450
               5: 82c456
               6: 82C457
               7: F65520
               8: F65530
             0Bh: 64300
             Bits 0-3:  Revision Number
        BH = Video Memory Size
               0:  256 Kbytes
               1:  512 Kbytes
               2:  1 Mbyte
               3:  2 Mbytes
        CX = Miscellaneous Information
             Bit 0  Dac Size. 0=6bit, 1=8bit
                 1  System Environment. 0=PC/AT, 1=PS/2
                 2  Extended text modes supported by BIOS
                 3  Reserved
                 4  Extended graphics modes supported by BIOS
                 5  Reserved
                 6  Graphics Cursor supported by BIOS
                 7  Anti Alias font supported by BIOS
                 8  Preprogrammed emulation supported by BIOS
                 9  Auto emulation supported by BIOS
                10  Variable mode set at cold boot supported by BIOS
                11  Variable mode set at warm boot supported by BIOS
                12  Emulation mode set at cold boot supported by BIOS
                13  Emulation mode set at warm boot supported by BIOS
             14-15  Reserved
----------105F01-----------------------------
INT 10 - Set Emulation Mode               (Chips and Technologies Super VGA)
        AX = 5F01h
        BL = Operation Mode
               0-1 Reserved
                 2 Enable CGA Emulation if set
                 3 Enable MDA Emulation if set
                 4 Enable Hercules Emulation if set
                 5 Enable EGA Emulation if set
                 6 Enable VGA Emulation if set
Return: AL = 5Fh  If function supported
        AH = Return Status
               1 If Function Successful, 0 else
----------105F02-----------------------------
INT 10 - Auto Emulation Control           (Chips and Technologies Super VGA)
        AX = 5F02h
        BL = Selection
               0= Enable Auto Emulation
               1= Disable Auto Emulation
Return: AL = 5Fh  If function supported
        AH = Return Status
               1 If Function Successful, 0 else
----------105F03-----------------------------
INT 10 - Set Power-on Video Configuration (Chips and Technologies Super VGA)
        AX = 5F03h
        BL = Configuration
               0:  Set display mode as specified in the CX register
                   at power-up.

                   CL=Display Mode
                   CH=Bits 0-1 Scanlines
                                 0=200 Lines
                                 1=350 Lines
                                 2=400 Lines
                      Bit    7 Persistence
                                 0= Reset after next boot
                                 1= Set until changed

               1:  Set Emulation mode as specified in the CX register
                   at power-up.

                   CL=Emulation Mode (See 5F01h)
                   CH=Bit 7 Performance
                        0= Reset after next boot
                        1= Set until changed

Return: AL = 5Fh  If function supported
        AH = Return Status
               1 If Function Successful, 0 else
----------105F90-----------------------------
INT 10 - Return Save/Restore buffer size  (Chips and Technologies Super VGA)
        AX = 5F90h
        CX = Mask State
             Bit 0  Save/Restore video hardware if set
                 1  Save/Restore BIOS data state if set
                 2  Save/Restore DAC state if set
                15  Save/Restore type
                      0= Save/Restore All state information
                      1= Save/Restore super state information

Return: AL = 5Fh  If function supported
        BX = Number of 64byte blocks required
----------105F91-----------------------------
INT 10 - Save State                       (Chips and Technologies Super VGA)
        AX = 5F91h
        CX = Mask State
             Bit 0  Save video hardware
                 1  Save BIOS data state
                 2  Save DAC state
                15  Save type
                      0= Save All state information
                      1= Save super state information
        ES:BX -> Buffer to save in.
Return: AL = 5Fh  If function supported
----------105F92-----------------------------
INT 10 - Restore State                    (Chips and Technologies Super VGA)
        AX = 5F92h
        CX = Mask State
             Bit 0  Restore video hardware
                 1  Restore BIOS data state
                 2  Restore DAC state
                15  Restore type
                      0= Restore All state information
                      1= Restore super state information
        ES:BX -> Buffer to restore from.
Return: AL = 5Fh  If function supported

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -