home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / sys_util / inter37b.zip / MEMORY.LST < prev    next >
File List  |  1993-09-29  |  26KB  |  598 lines

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