home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / doc / intlist / memory.lst < prev    next >
File List  |  1992-08-24  |  23KB  |  522 lines

  1. [This file was provided by Robin Walker.  --Ralf]
  2. Last Update: 8/24/92
  3.  
  4. Format of BIOS Data Segment at segment 40h:
  5.         {items in curly braces not documented by IBM}
  6. Offset    Size    Description
  7.  00h    WORD    Base I/O address of 1st serial I/O port, zero if none
  8.  02h    WORD    Base I/O address of 2nd serial I/O port, zero if none
  9.  04h    WORD    Base I/O address of 3rd serial I/O port, zero if none
  10.  06h    WORD    Base I/O address of 4th serial I/O port, zero if none
  11.             Note: Above fields filled in turn by POST as it finds serial
  12.             ports. POST never leaves gaps. DOS and BIOS serial device
  13.             numbers may be redefined by re-assigning these fields.
  14.  08h    WORD    Base I/O address of 1st parallel I/O port, zero if none
  15.  0Ah    WORD    Base I/O address of 2nd parallel I/O port, zero if none
  16.  0Ch    WORD    Base I/O address of 3rd parallel I/O port, zero if none
  17.  0Eh    WORD    [non-PS] Base I/O address of 4th parallel I/O port, zero if none
  18.         [PS] Segment of Extended BIOS Data Segment
  19.             Note: Above fields filled in turn by POST as it finds
  20.             parallel ports. POST never leaves gaps. DOS and BIOS
  21.             parallel device numbers may de redefined by re-assigning
  22.             these fields.
  23.  10h    WORD    Installed hardware:
  24.             bits 15-14: number of parallel devices
  25.             bit     13: [Conv] Internal modem
  26.             bit     12: reserved
  27.             bits 11- 9: number of serial devices
  28.             bit      8: reserved
  29.             bits  7- 6: number of diskette drives minus one
  30.             bits  5- 4: Initial video mode:
  31.                     00b = EGA,VGA,PGA
  32.                     01b = 40 x 25 color
  33.                     10b = 80 x 25 color
  34.                     11b = 80 x 25 mono
  35.             bit      3: reserved
  36.             bit      2: [PS] =1 if pointing device
  37.                 [non-PS] reserved
  38.             bit      1: =1 if math co-processor
  39.             bit      0: =1 if diskette available for boot
  40.  12h    BYTE    [Conv] POST status
  41.         [AT] {Manufacturing test initialisation flags}
  42.  13h    WORD    Base memory size in kbytes (0-640)
  43.  15h    BYTE    [AT] {Manufacturing test scratch pad}
  44.  16h    BYTE    [AT] {Manufacturing test scratch pad}
  45.         [PS/2 Mod 30] BIOS control flags
  46.  17h    BYTE    Keyboard status flags 1:
  47.             bit 7 =1 INSert active
  48.             bit 6 =1 Caps Lock active
  49.             bit 5 =1 Num Lock active
  50.             bit 4 =1 Scroll Lock active
  51.             bit 3 =1 either Alt pressed
  52.             bit 2 =1 either Ctrl pressed
  53.             bit 1 =1 Left Shift pressed
  54.             bit 0 =1 Right Shift pressed
  55.  18h    BYTE    Keyboard status flags 2:
  56.             bit 7 =1 INSert pressed
  57.             bit 6 =1 Caps Lock pressed
  58.             bit 5 =1 Num Lock pressed
  59.             bit 4 =1 Scroll Lock pressed
  60.             bit 3 =1 Pause state active
  61.             bit 2 =1 Sys Req pressed
  62.             bit 1 =1 Left Alt pressed
  63.             bit 0 =1 Left Ctrl pressed
  64.  19h    BYTE    Keyboard: Alt-nnn keypad workspace
  65.  1Ah    WORD    Keyboard: ptr to next character in keyboard buffer
  66.  1Ch    WORD    Keyboard: ptr to first free slot in keyboard buffer
  67.  1Eh 16 WORDs    Keyboard circular buffer (but see 80h, 82h for override)
  68.  3Eh    BYTE    Diskette recalibrate status:
  69.             bit 7 =1 Diskette hardware interrupt occurred
  70.             bits 6-4 reserved
  71.             bit 3 =1 Recalibrate diskette 3
  72.             bit 2 =1 Recalibrate diskette 2
  73.             bit 1 =1 Recalibrate diskette 1
  74.             bit 0 =1 Recalibrate diskette 0
  75.  3Fh    BYTE    Diskette motor status:
  76.             bit 7 =1 current operation is write or format
  77.               =0 current operation is read or verify
  78.             bit 6    reserved
  79.             bits 5-4 diskette drive number selected (0-3)
  80.             bit 3 =1 diskette 3 motor on
  81.             bit 2 =1 diskette 2 motor on
  82.             bit 1 =1 diskette 1 motor on
  83.             bit 0 =1 diskette 0 motor on
  84.  40h    BYTE    Diskette motor turn-off time-out count
  85.  41h    BYTE    Diskette last operation status (0 = OK)
  86.             bit 7 =1 drive not ready
  87.             bit 6 =1 seek error
  88.             bit 5 =1 general controller failure
  89.             bits 4-0:
  90.                 00h no error
  91.                 01h invalid request
  92.                 02h address mark not found
  93.                 03h write-protect error
  94.                 04h sector not found
  95.                 06h diskette change line active
  96.                 08h DMA overrun
  97.                 09h DMA across 64k boundary
  98.                 0Ch media type unknown
  99.                 10h CRC error on read
  100.  42h  7 BYTEs    Diskette/Fixed disk status/command bytes
  101.  49h    BYTE    Video current mode
  102.  4Ah    WORD    Video columns on screen
  103.  4Ch    WORD    Video page (regen buffer) size in bytes
  104.  4Eh    WORD    Video current page start address in regen buffer
  105.  50h 16 BYTEs    Video cursor position (col, row) for eight pages, 0 based
  106.  60h    WORD    Video cursor type, 6845 compatible, hi=startline, lo=endline
  107.  62h    BYTE    Video current page number
  108.  63h    WORD    Video CRT controller base address: color=03D4h, mono=03B4h
  109.  65h    BYTE    Video current setting of mode select register 03D8h/03B8h
  110.  66h    BYTE    Video current setting of CGA palette register 03D9h
  111.  67h    DWORD    POST real mode re-entry point after certain resets
  112.  6Bh    BYTE    POST last unexpected interrupt
  113.  6Ch    DWORD    Timer ticks since midnight
  114.  70h    BYTE    Timer overflow, non-zero if has counted past midnight
  115.  71h    BYTE    Ctrl-Break flag: bit 7=1
  116.  72h    WORD    POST reset flag:
  117.             = 1234h if to bypass memory test (warm boot)
  118.             = 4321h [PS/2 MCA only] if to preserve memory
  119.             = 5678h [Conv] system suspended
  120.             = 9ABCh [Conv] manufacturing test mode
  121.             = ABCDh [Conv] POST loop mode
  122.             =    64h Burn-in mode
  123.  74h    BYTE    Fixed disk last operation status: {except ESDI drives}
  124.             00h no error
  125.             01h invalid function request
  126.             02h address mark not found
  127.             03h write protect error
  128.             04h sector not found
  129.             05h reset failed
  130.             07h drive parameter activity failed
  131.             08h DMA overrun
  132.             09h DMA data boundary error
  133.             0Ah bad sector flag detected
  134.             0Bh bad track detected
  135.             0Dh invalid number of sectors for Format
  136.             0Eh control data address mark detected
  137.             0Fh DMA arbitration level out of range
  138.             10h uncorrectable ECC or CRC error
  139.             11h ECC corrected data error
  140.             20h general controller failed
  141.             40h seek failed
  142.             80h time out
  143.             AAh drive not ready
  144.             BBh undefined error
  145.             CCh write fault on selected drive
  146.             E0h status error/error register is zero
  147.             FFh sense failed
  148.  75h    BYTE    Fixed disk: number of fixed disk drives
  149.  76h    BYTE    Fixed disk: control byte    {IBM document only for XT}
  150.  77h    BYTE    Fixed disk: I/O port offset {IBM document only for XT}
  151.  78h  3 BYTEs    Parallel devices 1-3 time-out counters
  152.  7Bh    BYTE    parallel device 4 time-out counter [non-PS]
  153.         bit 5 set if Virtual DMA Spec supported [PS] (see INT 4B)
  154.  7Ch  4 BYTEs    Serial devices 1-4 time-out counters
  155.  80h    WORD    Keyboard buffer start as offset from segment 40h (normally 1Eh)
  156.  82h    WORD    Keyboard buffer end+1 as offset from segment 40h (normally 3Eh)
  157.         [XT BIOS dated 11/08/82 ends here]
  158.  84h    BYTE    Video EGA/MCGA/VGA rows on screen minus one
  159.  85h    WORD    Video EGA/MCGA/VGA character height in scan-lines
  160.  87h    BYTE    Video EGA/VGA control: [MCGA: =00h]
  161.             bit 7:  =1 if not to clear RAM (see INT 10h, AH=00h)
  162.             bits 6-5: RAM on adapter = (this field + 1) * 64K
  163.             bit 4:  reserved
  164.             bit 3:  =0 if EGA/VGA video system active, =1 if inactive
  165.             bit 2:  =1 if to wait for display enable (what means this?)
  166.             bit 1:  =0 for color or ECD monitor, =1 for mono monitor
  167.             bit 0:  =0 alphanumeric cursor emulation enabled, =1 not.
  168.                 When enabled, text mode cursor size (INT 10,AH=01h)
  169.                 settings looking like CGA ones are translated to
  170.                 equivalent EGA/VGA ones.
  171.  88h    BYTE    Video EGA/VGA switches: [MCGA: reserved]
  172.             bits 7-4: power-on state of feature connector bits 3-0
  173.             bits 3-0: configuration switches 4-1 (=0 on, =1 off)
  174.               Values as read:
  175.             0h Pri MDA,        Sec EGA+old color display 40 x 25
  176.             1h Pri MDA,        Sec EGA+old color display 80 x 25
  177.             2h Pri MDA,        Sec EGA+ECD normal mode (CGA emul)
  178.             3h Pri MDA,        Sec EGA+ECD enhanced mode
  179.             4h Pri CGA 40 x 25, Sec EGA mono display
  180.             5h Pri CGA 80 x 25, Sec EGA mono display
  181.             6h Pri EGA+old color display 40 x 25,  Sec MDA
  182.             7h Pri EGA+old color display 80 x 25,  Sec MDA
  183.             8h Pri EGA+ECD normal mode (CGA emul), Sec MDA
  184.             9h Pri EGA+ECD enhanced mode,           Sec MDA
  185.             Ah Pri EGA mono display,           Sec CGA 40 x 25
  186.             Bh Pri EGA mono display,           Sec CGA 80 x 25
  187.             When bit4 of 40h:89h is 0, VGA emulates 350-line EGA if
  188.             this byte is x3h or x9h, otherwise emulates 200-line CGA in
  189.             400-line double scan. VGA resets this byte to x9h after the
  190.             mode set.
  191.             See also note for next byte.
  192.  89h    BYTE    Video MCGA/VGA mode-set option control:
  193.             bits 7 and 4:
  194.             0 0  350-line mode requested
  195.             0 1  400-line mode at next mode set
  196.             1 0  200-line mode requested
  197.             1 1  reserved
  198.             Apparently VGA BIOS mode set disregards bit 7 and uses
  199.             byte 40h:88h to determine 200/350 selection when bit 4
  200.             is zero. Presumably bit 7 is a convenience for other
  201.             purposes. Bit 7 is reset to zero after the mode set.
  202.             bit 6:  =1 if display switching enabled, =0 if disabled
  203.             bit 5:  reserved
  204.             bit 4:  [VGA]  =1 if to use 400-line mode at next mode set
  205.                    =0 if to emulate EGA at next mode set
  206.                       This bit set to 1 after the mode set.
  207.                 [MCGA] =1 use 400-line mode at next mode set
  208.                    =0 emulate CGA, digital monitor, 200 lines,
  209.                       8 x 8 text font at next mode set
  210.                       Bit unchanged by mode set.
  211.             bit 3:  =0 if default palette loading enabled at mode set
  212.             bit 2:  =1 if mono display, =0 if color display
  213.             bit 1:  =1 if gray scale summing enabled, =0 if disabled
  214.             bit 0:  [VGA] =1 if VGA active, =0 if not
  215.                 [MCGA] reserved, zero
  216.         Note: the Tseng ET4000 BIOS v3.00 uses bits 6-4 of 88h and
  217.             bits 6-5 of 89h to specify graphics-mode refresh
  218.             rates as follows
  219.                 88h/6        640x480:  1 for 72Hz, 0 for 60Hz
  220.                 88h/5+89h/6    800x600:  00  60Hz
  221.                               01  56Hz
  222.                               11  72Hz
  223.                 88h/4+89h/5    1024x768: 00  interlaced
  224.                               01  60Hz
  225.                               10  72Hz???
  226.                               11  70Hz
  227.  8Ah    BYTE    Video [MCGA/VGA]: index into Display Combination Code table
  228.  8Bh    BYTE    Diskette media control [not XT]:
  229.             bits 7-6: Last data rate set by controller:
  230.                   00=500kbps, 01=300kbps, 10=250kbps, 11=reserved
  231.             bits 5-4: Last diskette drive step rate selected
  232.             bits 3-2: {Data rate at start of operation}
  233.             bits 1-0: reserved
  234.  8Ch    BYTE    Fixed disk controller status [not XT]
  235.  8Dh    BYTE    Fixed disk controller Error Status [not XT]
  236.  8Eh    BYTE    Fixed disk Interrupt Control [not XT]
  237.  8Fh    BYTE    Diskette controller information [not XT]:
  238.             bit 7:  reserved
  239.             bit 6:  =1 drive 1 determined
  240.             bit 5:  =1 drive 1 is multi-rate, valid if drive determined
  241.             bit 4:  =1 drive 1 supports 80 tracks, always valid
  242.             bit 3:  reserved
  243.             bit 2:  =1 drive 0 determined
  244.             bit 1:  =1 drive 0 is multi-rate, valid if drive determined
  245.             bit 0:  =1 drive 0 supports 80 tracks, always valid
  246.  90h    BYTE    Diskette drive 0 media state
  247.  91h    BYTE    Diskette drive 1 media state
  248.             bits 7-6: Data rate: 00=500kbps, 01=300kbps, 10=250kbps
  249.             bit    5: =1 if double stepping reqd (e.g. 360kB in 1.2MB)
  250.             bit    4: =1 if media established
  251.             bit    3: reserved
  252.             bits 2-0: on exit from BIOS, contain:
  253.                 000 trying 360kB in 360kB
  254.                 001 trying 360kB in 1.2MB
  255.                 010 trying 1.2MB in 1.2MB
  256.                 011 360kB in 360kB established
  257.                 100 360kB in 1.2MB established
  258.                 101 1.2MB in 1.2MB established
  259.                 110 reserved
  260.                 111 all other formats/drives
  261.  92h    BYTE    Diskette drive 0 media state at start of operation
  262.  93h    BYTE    Diskette drive 1 media state at start of operation
  263.  94h    BYTE    Diskette drive 0 current track number
  264.  95h    BYTE    Diskette drive 1 current track number
  265.  96h    BYTE    Keyboard status byte 1
  266.             bit 7 =1 read-ID in progress
  267.             bit 6 =1 last code read was first of two ID codes
  268.             bit 5 =1 force Num Lock if read-ID and enhanced keyboard
  269.             bit 4 =1 enhanced keyboard installed
  270.             bit 3 =1 Right Alt pressed
  271.             bit 2 =1 Right Ctrl pressed
  272.             bit 1 =1 last code read was E0h
  273.             bit 0 =1 last code read was E1h
  274.  97h    BYTE    Keyboard status byte 2
  275.             bit 7 =1 keyboard transmit error flag
  276.             bit 6 =1 LED update in progress
  277.             bit 5 =1 RESEND received from keyboard
  278.             bit 4 =1 ACK received from keyboard
  279.             bit 3 reserved, must be zero
  280.             bit 2 Caps Lock LED
  281.             bit 1 Num Lock LED
  282.             bit 0 Scroll Lock LED
  283.  98h    DWORD    Timer2: [AT, PS exc Mod 30] ptr to user wait-complete flag
  284.                         (see INT 15, AX=8300h)
  285.  9Ch    DWORD    Timer2: [AT, PS exc Mod 30] user wait count in microseconds
  286.  A0h    BYTE    Timer2: [AT, PS exc Mod 30] Wait active flag:
  287.             bit 7 =1 wait time elapsed
  288.             bits 6-1 reserved
  289.             bit 0 =1 INT 15h, AH=86h has occurred
  290.  A1h  7 BYTEs    reserved for network adapters (oh really?)
  291.  A4h    DWORD    [PS/2 Mod 30] Saved Fixed Disk Interrupt Vector
  292.  A8h    DWORD    Video: EGA/MCGA/VGA ptr to Video Save Pointer Table (see below)
  293.  ACh-AFh    reserved
  294.  B0h    BYTE    (Phoenix 386 BIOS 1.10 10a) loop count for delaying when
  295.           beeping due to full keyboard buffer
  296.  B0h    DWORD    ptr to 3363 Optical disk driver or BIOS entry point.
  297.             When 3363 BIOS present, the signature "OPTIC ",00h occurs 3
  298.             bytes beyond this entry point.
  299.             When 3363 BIOS and 3363 File System Driver present, the
  300.             signature "FILE SYSTEM DRIVER",00h occurs 3 bytes beyond
  301.             this entry point.
  302.  B4h    WORD    reserved
  303.  B6h  3 BYTEs    reserved for POST?
  304.  B9h  7 BYTEs    ???
  305.  C0h 14 BYTEs    reserved
  306.  CEh    WORD    count of days since last boot???
  307.  D0h-EFh    reserved
  308.  D0h    BYTE    [Digiboard MV/4] length of data table
  309.  D1h    BYTE    [Digiboard MV/4] product ID
  310.  D2h    WORD    [Digiboard MV/4] base address found
  311.  D4h    BYTE    [Digiboard MV/4] ports
  312.  D5h    BYTE    [Digiboard MV/4] IRQ
  313.  D6h    WORD    [Digiboard MV/4] keyboards found
  314.  D8h    WORD    [Digiboard MV/4] mice found
  315.  DAh    BYTE    [Digiboard MV/4] current port (used by VGA initialization only)
  316.  DBh    BYTE    [Digiboard MV/4] master 8259 mask (used by VGA init only)
  317.  DCh    BYTE    [Digiboard MV/4] slave 8259 mask (used by VGA init only)
  318.  F0h-FFh    reserved for user
  319. 100h    BYTE    Print Screen Status byte
  320. 10Eh    BYTE    state of BREAK at start of BASICA.COM execution
  321. 10Fh    BYTE    flag: 02h if BASICA v2.10 running
  322. 116h    DWORD    INT 1Bh at start of BASICA.COM execution
  323. 11Ah    DWORD    INT 24h at start of BASICA.COM execution
  324.  
  325. Format of Extended BIOS Data Area (see 40:0Eh for ptr) [PS only]
  326. Offset    Size    Description
  327.  00h    BYTE    Length of EBDA in kilobytes
  328.  01h 15 BYTEs    reserved
  329.  17h    BYTE    Number of entries in POST error log (0-5)
  330.  18h  5 WORDs    POST error log (each word is a POST error number)
  331.  19h-21h    reserved
  332.  22h    DWORD    Pointing Device Driver entry point
  333.  26h    BYTE    Pointing Device Flags 1
  334.            bit 7:    =1 command in progress
  335.            bit 6:    =1 resend
  336.            bit 5:    =1 acknowledge
  337.            bit 4:    =1 error
  338.            bit 3:    =0 reserved
  339.            bits 2-0: index count
  340.  27h    BYTE    Pointing Device Flags 2
  341.            bit 7:    =1 device driver far call flag
  342.            bits 6-3: reserved
  343.            bits 2-0: package size
  344.  28h  7 BYTEs    Pointing Device Auxiliary Device Data
  345.  2Fh    BYTE    reserved
  346.  30h    DWORD    Vector for INT 07h stored here during 80387 interrupt
  347.  34h    DWORD    Vector for INT 01h stored here during INT 07h emulation
  348.  38h    BYTE    Scratchpad for 80287/80387 interrupt code
  349.  39h    WORD    Timer3: Watchdog timer initial count
  350.  3Bh    BYTE    ??? seen non-zero on Model 30
  351.  3Ch    BYTE    ???
  352.  3Dh 16 BYTEs    Fixed Disk parameter table for drive 0 (oh really?)
  353.  4Dh 16 BYTEs    Fixed Disk parameter table for drive 1 (oh really?)
  354.             Neither of above seen on any Model 30, 50, 60 yet.
  355.  5Dh-6Bh    ???
  356.  6Ch    BYTE    Fixed disk: (=FFh on ESDI systems)
  357.             bits 7-4: Channel number 00-0Fh
  358.             bits 3-0: DMA arbitration level 00-0Eh
  359.  6Dh    BYTE    ???
  360.  6Eh    WORD    current typematic setting (see INT 16/AH=03h)
  361.  70h 167 BYTEs    ???
  362. 117h    WORD    keyboard ID (see INT 16/AH=0Ah)
  363. 119h and up:    ??? seen non-zero on Model 60
  364. 3F0h    BYTE    Fixed disk buffer (???!!!)
  365.  
  366. Format of Video Save Pointer Table [EGA/VGA/MCGA only]:
  367. Offset    Size    Description
  368.  00h    DWORD    ptr to Video Parameter Table
  369.  04h    DWORD    ptr to Parameter Dynamic Save Area, else 0 [EGA/VGA only]
  370.  08h    DWORD    ptr to Alphanumeric Character Set Override, else 0
  371.  0Ch    DWORD    ptr to Graphics Character Set Override, else 0
  372.  10h    DWORD    [VGA only] ptr to Secondary Save Pointer Table, must be valid
  373.  14h    DWORD    reserved, zero
  374.  18h    DWORD    reserved, zero
  375. Note: table initially in ROM, copy to RAM to alter, then update 40h:A8h.
  376.  
  377. Format of Secondary Video Save Pointer Table [VGA only]:
  378. Offset    Size    Description
  379.  00h    WORD    Length of this table in bytes, including this word (1Ah)
  380.  02h    DWORD    ptr to Display Combination Code Table, must be valid
  381.  06h    DWORD    ptr to second Alphanumeric Character Set Override, else 0
  382.  0Ah    DWORD    ptr to User Palette Profile Table, else 0
  383.  0Eh    DWORD    reserved, zero
  384.  12h    DWORD    reserved, zero
  385.  16h    DWORD    reserved, zero
  386. Note: table initially in ROM, copy to RAM to alter, then alter Save Ptr Table.
  387.  
  388. Format of Video Parameter Table [EGA, VGA only]:
  389. An array of 23 [EGA] or 29 [VGA] elements, each element being 64 bytes long.
  390. Elements appear in the order:
  391.  00h-03h    Modes 00h-03h in 200-line CGA emulation mode
  392.  04h-0Eh    Modes 04h-0Eh
  393.  0Fh-10h    Modes 0Fh-10h when only 64kB RAM on adapter
  394.  11h-12h    Modes 0Fh-10h when >64kB RAM on adapter
  395.  13h-16h    Modes 00h-03h in 350-line mode
  396.  17h        VGA Modes 00h or 01h in 400-line mode
  397.  18h        VGA Modes 02h or 03h in 400-line mode
  398.  19h        VGA Mode  07h in 400-line mode
  399.  1Ah-1Ch    VGA Modes 11h-13h
  400.  
  401. Format of Video Parameter Table element [EGA, VGA only]:
  402. Offset    Size    Description
  403.  00h    BYTE    Columns on screen          (see 40h:4Ah)
  404.  01h    BYTE    Rows on screen minus one      (see 40h:84h)
  405.  02h    BYTE    Height of character in scan lines (see 40h:85h)
  406.  03h    WORD    Size of video buffer          (see 40h:4Ch)
  407.  05h  4 BYTEs    Values for Sequencer Registers 1-4
  408.  09h    BYTE    Value for Miscellaneous Output Register
  409.  0Ah 25 BYTEs    Values for CRTC Registers 00h-18h
  410.  23h 20 BYTEs    Values for Attribute Controller Registers 00h-13h
  411.  37h  9 BYTEs    Values for Graphics Controller Registers 00h-08h
  412.  
  413. Format of Video Parameter Table [MCGA only] {guesswork from inspection}:
  414.     - 16 triplet BYTEs of R,G,B DAC info for 16 colors;
  415.     - An array of 11 elements, each element being 32 bytes long.
  416.       Elements appear in the order:
  417.         Modes 00h,01h in 200-line mode for digital displays
  418.         Modes 00h,01h in 400-line mode for analog displays
  419.         Modes 02h,03h in 200-line mode for digital displays
  420.         Modes 02h,03h in 400-line mode for analog displays
  421.         Modes 04h,05h in 200-line mode for digital displays
  422.         Modes 04h,05h in 400-line mode for analog displays
  423.         Mode  06h in 200-line mode for digital displays
  424.         Mode  06h in 400-line mode for analog displays
  425.         Mode  11h
  426.         Mode  13h in 200-line mode for digital displays
  427.         Mode  13h in 400-line mode for analog displays
  428.  
  429. Format of Video Parameter Table element [MCGA only]:
  430. Offset    Size    Description
  431.  00h    BYTE    Columns on screen          (see 40h:4Ah)
  432.  01h    BYTE    Rows on screen minus one      (see 40h:84h)
  433.  02h    BYTE    Height of character in scan lines (see 40h:85h)
  434.  03h    WORD    Size of video buffer          (see 40h:4Ch)
  435.  05h    WORD    ??? always zero
  436.  07h 21 BYTEs    Video data registers 00h-14h to port 3D5h indexed by 3D4h
  437.  1Ch    BYTE    PEL Mask to port 3C6h
  438.  1Dh    BYTE    CGA Mode Control to port 3D8h
  439.  1Eh    BYTE    CGA Border Control to port 3D9h
  440.  1Fh    BYTE    Extended Mode Control to port 3DDh
  441.  
  442. Format of Video Parameter Dynamic Save Area [EGA, VGA only]:
  443. Offset    Size    Description
  444.  00h 16 BYTEs    Last data written to Attribute Controller Palette Registers 0-15
  445.  10h    BYTE    Last data written to Attribute Controller Overscan Register
  446.  11h-FFh    Reserved
  447.         Note: Need for table was that EGA registers were write-only.
  448.         Note: If default values (from the Video Parameter Table) are
  449.               over-ridden at a mode set by the VGA User Palette Profile
  450.               Table, then the Dynamic Save Area is updated with the
  451.               default values, not the User Profile ones.
  452.  
  453. Format of Alphanumeric Character Set Override:
  454. Offset    Size    Description
  455.  00h    BYTE    Length in bytes of each character in font table
  456.  01h    BYTE    Character generator RAM bank to load, 0=normal
  457.  02h    WORD    Number of characters in font table, normally 256
  458.  04h    WORD    Code of first character in font table, normally 0
  459.  06h    DWORD    ptr to font table
  460.  0Ah    BYTE    Displayable rows (FFh=use maximum calculated value)
  461.  0Bh    BYTEs    Array of mode values to which this font is to pertain
  462.     BYTE    FFh end of array
  463.  
  464. Format of Second Alphanumeric Character Set Override:
  465. Authorities differ, some say same as first override above, but IBM say:
  466. Offset    Size    Description
  467.  00h    BYTE    Length in bytes of each character in font table
  468.  01h    BYTE    Character generator RAM bank to load, normally non-zero
  469.  02h    BYTE    reserved
  470.  03h    DWORD    ptr to font table
  471.  07h    BYTEs    Array of mode values to which this font is to pertain
  472.     BYTE    FFh end of array
  473.  
  474. Format of Graphics Character Set Override:
  475. Offset    Size    Description
  476.  00h    BYTE    Number of displayable character rows
  477.  01h    WORD    Length in bytes of each character in font table
  478.  03h    DWORD    ptr to font table
  479.  07h    BYTEs    Array of mode values to which this font is to pertain
  480.     BYTE    FFh end of array
  481.  
  482. Format of Display Combination Code Table [VGA only]:
  483. Offset    Size    Description
  484.  00h    BYTE    Number of entries in the DCC table at offset 04h
  485.  01h    BYTE    Version number
  486.  02h    BYTE    Maximum display type code that can appear in DCC table
  487.  03h    BYTE    reserved
  488.  04h    ARRAY OF 2 BYTEs Each pair of bytes gives a valid display combination
  489.             Meaning of each byte:
  490.             00h    no display
  491.             01h    MDA with mono display
  492.             02h    CGA with color display
  493.             03h    reserved
  494.             04h    EGA with color display
  495.             05h    EGA with mono display
  496.             06h    Professional Graphics Controller
  497.             07h    VGA with mono display
  498.             08h    VGA with color display
  499.             09h    reserved
  500.             0Ah    MCGA with digital color display
  501.             0Bh    MCGA with analog mono display
  502.             0Ch    MCGA with analog color display
  503.             FFh    unrecognised video system
  504.  
  505. Format of User Palette Profile Table [VGA only]:
  506. Offset    Size    Description
  507.  00h    BYTE    Underlining: 01h=enable in all alphanumeric modes
  508.                  00h=enable in monochrome alphanumeric modes only
  509.                  FFh=disable in all alphanumeric modes
  510.  01h    BYTE    reserved
  511.  02h    WORD    reserved
  512.  04h    WORD    Number (0-17) of Attribute Controller registers in table
  513.  06h    WORD    Index (0-16) of first Attribute Controller register in table
  514.  08h    DWORD    ptr to table of Attribute Controller registers to override
  515.             Table is an array of BYTEs.
  516.  0Ch    WORD    Number (0-256) of video DAC Color registers in table
  517.  0Eh    WORD    Index (0-255) of first video DAC Color register in table
  518.  10h    DWORD    ptr to table of video DAC Color registers to override
  519.             Table is ??? triplets ??? of BYTEs???
  520.  14h    BYTEs    array of mode values to which this profile is to pertain
  521.     BYTE    FFh end of array
  522.