home *** CD-ROM | disk | FTP | other *** search
/ POINT Software Programming / PPROG1.ISO / misc / inter41 / memory.lst < prev    next >
Encoding:
File List  |  1994-05-22  |  29.4 KB  |  700 lines

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