home *** CD-ROM | disk | FTP | other *** search
/ Power CD-ROM!! 7 / POWERCD7.ISO / prgmming / inter43 / cmos.lst < prev    next >
File List  |  1994-11-06  |  26KB  |  616 lines

  1.               CMOS Memory Map v1.23 June, 1994
  2. [Last Edit: 11/6/94]
  3.  
  4. Compiled from multiple sources by Padgett Peterson
  5. Corrections/additions/comments to: padgett@tccslr.dnet.mmc.com
  6.  
  7. No guarantees of any kind.
  8.  
  9. Copyrights/Trademarks belong to whoever they may belong to.
  10.  
  11. Found: Algorithm used by IBM in calculating CRC checksums for PS/2
  12.        (see bytes 32h-33h). Complex (recursive part is 12 lines of
  13.        assembly) and not yet validated for every model.
  14.  
  15.  
  16.             Background
  17.  
  18. The CMOS (complementary metal oxide semiconductor) memory is actually 
  19. a 64 or 128 byte battery-backed RAM memory module that is a part of the 
  20. system clock chip. Some IBM PS/2 models have the capability for a
  21. 2k (2048 byte) CMOS ROM Extension.
  22.  
  23. First used with clock-calender cards for the IBM PC-XT, when the PC/AT
  24. (Advanced Technology) was introduced in 1985, the Motorola MC146818 
  25. became a part of the motherboard. Since the clock only uses fourteen of 
  26. the RAM bytes, the rest are available for storing system configuration data.
  27.  
  28. Interestingly, the original IBM-PC/AT (Advanced Technology) standard for 
  29. the region 10h-3Fh is nearly universal with one notable exception: The 
  30. IBM PS/2 systems deviate considerably (Note: AMSTRAD 8086 machines were 
  31. among the first to actively use the CMOS memory available and since they 
  32. *predate* the AT, do not follow the AT standard).
  33.  
  34. This is just another example of how IBM created a standard, lost control 
  35. of it, tried to replace it, failed and lost market share in the process. 
  36.  
  37. Originally, the IBM PC/AT only made use of a small portion of CMOS memory
  38. and was defined in the IBM PC/AT Technical Reference Manual, specifically 
  39. bytes 10h, 12h, 14h-18h, 2Eh-33h. The balance was left undefined but was 
  40. quickly appropriated by various BIOS manufacturers for such user-selectable 
  41. options such as wait states, clock speeds, initial boot drive selection, and 
  42. password storage.
  43.  
  44. Later, as CMOS memory requirements grew, newer clock chips with 128
  45. bytes of RAM came into use. However the fact remains that once the AT 
  46. standard was established, only IBM has tried to change the definitions 
  47. of that first description.
  48.  
  49.             Accessing the CMOS
  50.  
  51. The CMOS memory exists outside of the normal address space and cannot
  52. contain directly executable code. It is reachable through IN and OUT
  53. commands at port number 70h (112d) and 71h (113d). To read a CMOS byte,
  54. an OUT to port 70h is executed with the address of the byte to be read and
  55. an IN from port 71h will then retrieve the requested information. The 
  56. following BASIC fragment will read 128 CMOS bytes and print them to the 
  57. screen in 8 rows of 16 values.
  58.  
  59. CMOS RAM space has an upper limit of 128 bytes because of the structure
  60. of port 70: only bits 0-6 are used for addressing, bit 7 is used to 
  61. enable (0) or disable (1) Non-Maskable Interrupts (NMI) and explains why
  62. IBM uses 80h OR <address> to read/write data & follows with  a "throw-away"
  63. call.
  64.  
  65. Note that if the CMOS only has 64 bytes available, addressing will 
  66. generally wrap and addresses from 40h-7Fh will mirror 00h-3Fh. Output will 
  67. be hexadecimal.
  68.  
  69. 10 CLS
  70. 20 FOR i = 0 TO &H7F 
  71. 30 OUT &H70, i
  72. 40 PRINT USING "\   \"; HEX$(INP(&H71));
  73. 50 NEXT i
  74. 60 PRINT " " 
  75.  
  76. Note: where not otherwise noted, all data points are expressed as BYTES
  77.       these are eight bit values and are read from MSB to LSB e.g.
  78.       0000 0000     0101 1010 binary would be written as 5Ah
  79.       7654 3210     where only some bits are used this is represented with
  80.                     Xs e.g bits 5-3 would be shown as 00xx x000
  81.  
  82.  
  83.         Organization of CMOS Memory - Clock
  84.  
  85. 00h-0Eh is defined by the clock hardware and all must follow it. Other 
  86. manufacturers generally follow the same format as specified for the
  87. region 10h - 2Fh. Some also follow the IBM format for 30h-33h but not all 
  88. (Zenith in particular is different).
  89.  
  90. The first fourteen bytes are dedicated to the MC146818 chip clock functions 
  91. and consist of ten read/write data registers and four status registers, two 
  92. of which are read/write and two of which are read only.
  93.  
  94. The format of the ten clock data registers (bytes 00h-09h) is:
  95.  
  96.  00h Seconds       (BCD 00-59, Hex 00-3B) Note: Bit 7 is read only      
  97.  01h Second Alarm  (BCD 00-59, Hex 00-3B; "don't care" if C0-FF)
  98.  02h Minutes       (BCD 00-59, Hex 00-3B)
  99.  03h Minute Alarm  (BCD 00-59, Hex 00-3B; "don't care" if C0-FF))       
  100.  04h Hours         (BCD 00-23, Hex 00-17 if 24 hr mode)
  101.                    (BCD 01-12, Hex 01-0C if 12 hr am)
  102.                    (BCD 81-92. Hex 81-8C if 12 hr pm)         
  103.  05h Hour Alarm    (same as hours; "don't care" if C0-FF))     
  104.  06h Day of Week   (01-07 Sunday=1)    
  105.  07h Date of Month (BCD 01-31, Hex 01-1F)    
  106.  08h Month         (BCD 01-12, Hex 01-0C)         
  107.  09h Year          (BCD 00-99, Hex 00-63)         
  108.  
  109. BCD/Hex selection depends on Bit 2 of register B (0Bh)
  110. 12/24 Hr selection depends on Bit 1 of register B (0Bh)
  111. Alarm will trigger when contents of all three Alarm byte registers
  112. match their companions.
  113.  
  114. The following is the on-chip status register information. 
  115.  
  116.  0Ah Status Register A (read/write) (usu 26h)
  117.   Bit 7     - (1) time update cycle in progress, data ouputs undefined 
  118.               (bit 7 is read only)
  119.   Bit 6,5,4 - 22 stage divider. 010b - 32.768 Khz time base (default)
  120.   Bit 3-0   - Rate selection bits for interrupt.
  121.               0000b - none
  122.               0011b - 122 microseconds (minimum)
  123.               1111b - 500 milliseconds  
  124.               0110b - 976.562 microseconds (default)
  125.  
  126.  0Bh Status Register B (read/write) 
  127.   Bit 7 - 1 enables cycle update, 0 disables
  128.   Bit 6 - 1 enables periodic interrupt
  129.   Bit 5 - 1 enables alarm interrupt
  130.   Bit 4 - 1 enables update-ended interrupt
  131.   Bit 3 - 1 enables square wave output
  132.   Bit 2 - Data Mode - 0: BCD, 1: Binary
  133.   Bit 1 - 24/12 hour selection - 1 enables 24 hour mode
  134.   Bit 0 - Daylight Savings Enable - 1 enables
  135.  
  136.  0Ch Status Register C (Read only)
  137.   Bit 7 - Interrupt request flag - 1 when any or all of bits 6-4 are
  138.           1 and appropriate enables (Register B) are set to 1. Generates
  139.           IRQ 8 when triggered.
  140.   Bit 6 - Periodic Interrupt flag
  141.   Bit 5 - Alarm Interrupt flag 
  142.   Bit 4 - Update-Ended Interrupt Flag
  143.   Bit 3-0 ???
  144.  
  145.  0Dh Status Register D (read only)
  146.   Bit 7 - Valid RAM - 1 indicates batery power good, 0 if dead or
  147.           disconnected.
  148.   Bit 6-0 ???
  149.  
  150. ---------------------------------------------
  151.  
  152.         Organization of CMOS Memory - non-Clock
  153.  
  154. The last two bytes in the first hexadecimal decade (hexade ?) were not 
  155. specified in the PC/AT but may have the following use on some systems:
  156.  
  157.  0Eh (PS/2) Diagnostic Status Byte 
  158.      Bit 7 - When set (1) indicates clock has lost power
  159.      Bit 6 - (1) indicates incorrect checksum
  160.      Bit 5 - (1) indicates that equipment configuration is incorrect
  161.                  power-on check requires that atleast one floppy be installed
  162.      Bit 4 - (1) indicates error in memory size
  163.      Bit 3 - (1) indicates that controller or disk drive failed initialization
  164.      Bit 2 - (1) indicates that time is invalid
  165.      Bit 1 - (1) indicates installed adaptors do not match configuration
  166.      Bit 0 - (1) indicates a time-out while reading adaptor ID
  167.  
  168.  0Eh (AMSTRAD) 6  BYTEs time and date machine last used
  169.  
  170.  0Fh Reset Code        
  171.      (IBM PS/2 "Shutdown Status Byte")
  172.  
  173. ---------------------------------------------
  174.  
  175. The second group of values extends from address 10h to 2Dh. The word at
  176. 2Eh-2Fh is a byte-wise summation of the values in these bytes. Most BIOSes
  177. will generate a CMOS Checksum error if this value is invalid however many 
  178. programs ignore the checksum and report the apparent value. The current
  179. version of MSD reports my XT as having 20+ MB of extended memory. 
  180.  
  181. Where a definiton appears universal, no identification is made. Where
  182. the definition is thought to be specific to a manufacturer/model (AMI, 
  183. AMSTRAD, IBM AT, IBM PS/2) the identification is enclosed in parens. The
  184. AMSTAD definitions appear to relate to 8088/8086 (PC and PC/XT class)
  185. mchines only. AT class machines appear to adhere to IBM PC/AT fornat.
  186.  
  187. ---------------------------------------------
  188.  10h - Floppy Drive Type
  189.  
  190.   Bits 7-4 - First Floppy Disk Drive Type
  191.    0h      No Drive
  192.    1h      360 KB 5 1/4 Drive
  193.    2h      1.2 MB 5 1/4 Drive - note: not listed in PS/2 technical manual
  194.    3h      720 KB 3 1/2 Drive
  195.    4h     1.44 MB 3 1/2 Drive
  196.    5h-Fh  unused (??? 5h: 2.88 Mb 3 1/2 Drive ???)
  197.  
  198.    Bits 3-0 Second Floppy Disk Drive Type (bit settings same as A)
  199.  
  200.    Hence a PC having a 5 1/4 1.2 Mb A: drive and a 1.44 Mb B: drive will
  201.    have a value of 24h in byte 10h. With a single 1.44 drive: 40h.
  202.  
  203. ---------------------------------------------
  204.  11h - (IBM-PS/2) First Fixed Disk Drive Type Byte (00-FFh) Note: if IBM
  205.    ESDI or SCSI drive controller is used, CMOS drive type will be zero (00 -
  206.    no drive) and Int 13h will be directed to controller ROM.
  207.  
  208.  11h - (AMI) Keyboard Typematic Data 
  209.   Bit 7 Enable Typematic (1 = On)
  210.   Bits 6-5 Typematic Delay (wait before begin repeating)
  211.    00b 250 ms
  212.    01b 500 ms
  213.    10b 750 ms
  214.    11b 100 ms
  215.   Bits 4-0 Typematic Rate char/sec e.g. 01010b = 12.0 cps
  216.    00000b - 300  01000b - 159  10000b - 75  11000b - 37
  217.    00001b - 267  01001b - 133  10001b - 67  11001b - 33
  218.    00010b - 240  01010b - 120  10010b - 60  11010b - 30
  219.    00011b - 218  01011b - 109  10011b - 55  11011b - 27
  220.    00100b - 200  01100b - 100  10100b - 50  11100b - 25
  221.    00101b - 185  01101b -  92  10101b - 46  11101b - 23
  222.    00110b - 171  01110b -  86  10110b - 43  11110b - 21
  223.    00111b - 160  01111b -  80  10111b - 40  11111b - 20
  224.  
  225.  11h - (AMI) Advanced Setup Options
  226.   bit 7 mouse enabled
  227.   bit 6 test memory above 1 megabyte
  228.   bit 5 generate clicks during memory test
  229.   bit 4 enable memory parity check
  230.   bit 3 display key for Setup while booting
  231.   bit 2 store user-defined disk data at top of memory instead of 0030h:0000h
  232.   bit 1 request F1 keypress on boot error
  233.  
  234. ---------------------------------------------
  235.  12h - (IBM PS/2) Second Fixed Disk Drive Type (00-FFh) - see 11h
  236.  12h - Hard Disk Data
  237.   Bits 7-4 First Hard Disk Drive
  238.    00     No drive
  239.    01-0Eh Hard drive Type 1-14
  240.    0Fh    Hard Disk Type 16-255 (actual Hard Drive Type is in CMOS RAM 1Ah)
  241.   Bits 3-0 Second Hard Disk Drive Type (same as above except extrnded type
  242.           will be found in 1Bh).
  243.   A PC with a single type 2 (20 Mb ST-225) hard disk will have 20h in byte 12h
  244.   Note: some PCs utilizing external disk controller ROMs will use type 0 to
  245.    disable ROM BIOS (e.g. Zenith 248 with Plus HardCard).
  246.  
  247. ---------------------------------------------
  248.  13h (AMI) Advanced Setup Options
  249.   Bit 7 Mouse Enabled (1 = On)
  250.   Bit 6 Test Memory above 1 MB (1 = On)
  251.   Bit 5 Memory Test Tick Sound (1 = On)
  252.   Bit 4 Memory Parity Error Check (1 = On)
  253.   Bit 3 Press <Esc> to Disable Memory Test (1 = On)
  254.   Bit 2 User-Defined Hard Disk (1 = Type 47 data area at address 0:300h)
  255.   Bit 1 Wait for <F1> Message if Error (1 = On)
  256.   Bit 0 Turn Num Lock On at boot (1 = On)
  257.  
  258.  13h (PS/2 MCA) internal POST operations
  259.   bit 7  POST sets VGA pel information
  260.   bit 6  RTC battery OK
  261.   bit 5  invoke ROM BASIC from POST
  262.   bit 4  POST sets typematic to 30cps/250ms delay instead of 10.9cps/500ms
  263.   bit 3-2 unused or unknown
  264.   bit 1  network password installed
  265.   bit 0  power-on password installed
  266.  
  267. ---------------------------------------------
  268.  14h - Equipment Byte 
  269.   Bits 7-6 Number of Floppy Drives (system must have at least one)
  270.    00b     1 Drive
  271.    01b     2 Drives
  272.    10b ??? 3 Drives
  273.    11b ??? 4 Drives
  274.   Bits 5-4 Monitor Type
  275.    00b Not CGA or MDA (observed for EGA & VGA)
  276.    01b 40x25 CGA
  277.    10b 80x25 CGA
  278.    11b MDA (Monochrome)
  279.   Bit 3 Display Enabled (1 = On)   (turned off to enable boot of rackmount)
  280.   Bit 2 Keyboard Enabled (1 = On)  (turned off to enable boot of rackmount)
  281.   Bit 1 Math coprocessor Installed (1 = On)
  282.   Bit 0 Floppy Drive Installed (1 = On) (turned off for rackmount boot)
  283.  
  284.  14h - (AMSTRAD)    BYTE user RAM checksum
  285.             LSB of sum of all user bytes should be AAh
  286.  
  287. ---------------------------------------------
  288.  15h - Base Memory in K, Low Byte
  289.  15h - (AMSTRAD)    WORD Enter key scancode/ASCII code
  290.             default: 1C0Dh  - emulates Return key
  291.  
  292. ---------------------------------------------
  293.  16h Base Memory in K, High Byte
  294.   The value in 15h-16h should be the same as in 0:413h and that returned by 
  295.   Int 12h. A PC having 640k (280h) of conventional memory will return 80h in 
  296.   byte 15h and 02h in byte 16h.
  297.  
  298. ---------------------------------------------
  299.  17h - Extended Memory in K, Low Byte
  300.  17h - (AMSTRAD)    WORD Forward delete key scancode/ASCII code
  301.             default: 2207h  - emulates ^G (bell/beep)
  302.  
  303. ---------------------------------------------
  304.  18h - Extended Memory in K, High Byte (some systems will only accommodate 
  305.   15 Mb extended or 16 Mb total) Format is the same as in 15h-16h
  306.  
  307. ---------------------------------------------
  308.  19h - First Extended Hard Disk Drive Type (not in original AT
  309.   specification but now nearly universally used except for PS/2).
  310.   0-Fh unused (would not require extension. Note: this has the effect
  311.     making type 0Fh (15d) unavailable.
  312.   10h-FFh First Extended Hard Drive Type 16d-255d
  313.  19h - (MCA) Slot 0 adapter card ID
  314.  
  315. For most manufacturers the last drive type (typically either 47d or 49d)
  316. is "user defined" and parameters are stored elsewhere in the CMOS.
  317.  
  318.  19h - (AMSTRAD)    WORD Joystick fire button 1 scancode/ASCII code
  319.             default: FFFFh  - (no translation)
  320.  
  321. ---------------------------------------------
  322.  1Ah - Second Extended Hard Disk Drive Type (see 19h above)
  323.  1Ah - (MCA) Slot 0 adapter card ID
  324.  
  325. ---------------------------------------------
  326.  1Bh - (MCA) Slot 1 adapter card ID
  327.  1Bh - (AMI) First Hard Disk (type 47) user defined: # of Cylinders, LSB
  328.  1Bh - (AMSTRAD)    WORD Joystick fire button 2 scancode/ASCII code
  329.             default: FFFFh  - (no translation)
  330.  1Bh - (PHOENIX) LSB of Word to 82335 RC1 roll compare register
  331.  
  332. ---------------------------------------------
  333.  1Ch - (MCA) Slot 1 adapter card ID
  334.  1Ch - (AMI) First Hard Disk user defined: # of Cylinders, High Byte
  335.  1Ch - (PHOENIX) MSB of Word to 82335 RC1 roll compare register
  336.  
  337. ---------------------------------------------
  338.  1Dh - (MCA) Slot 2 adapter card ID
  339.  1Dh - (AMI) First Hard Disk user defined: Number of Heads
  340.  1Dh - (AMSTRAD)    WORD mouse button 1 scancode/ASCII code
  341.             default: FFFFh  - (no translation)
  342.  1Dh - (Zenith Z-200 monitor) Boot Drive Selection
  343.        Bits 6-5 (0xx0 0000)
  344.        00 - MFM Monitor
  345.        01 - First floppy drive (A:)
  346.        10 - First fixed disk (C:)
  347.        11 - First floppy drive (A:). If not there then First fixed disk (C:)
  348.             (this is the default).
  349.  1Dh - (PHOENIX) LSB of Word to 82335 RC2 roll compare register
  350.  
  351. ---------------------------------------------
  352.  1Eh - (MCA) Slot 2 adapter card ID
  353.  1Eh - (AMI) First Hard Disk user defined: Write Precompensation Cylinder, 
  354.        Low Byte
  355.  1Eh - (PHOENIX) MSB of Word to 82335 RC2 roll compare register
  356.  
  357. ---------------------------------------------
  358.  1Fh - (MCA) Slot 3 adapter card ID
  359.  1Fh - (AMI) First Hard Disk user defined: Write Precompensation Cylinder, 
  360.        High Byte
  361.  1Fh - (AMSTRAD)    WORD mouse button 2 scancode/ASCII code
  362.             default: FFFFh  - (no translation)
  363.  
  364. ---------------------------------------------
  365.  20h - (MCA) Slot 3 adapter card ID
  366.  20h - (AMI) First Hard Disk user defined: Control Byte
  367.      bits 7-6 no retries (1)
  368.      bit 5    bad sector map at last cylinder+1
  369.      bit 4    unused (0)
  370.      bit 3    more than 8 heads
  371.      bits 2-0 unused (0)
  372.  20h - (PHOENIX) First user defined hard disk (type 48) Cylinders LSB
  373.  
  374. ---------------------------------------------
  375.  21h - (MCA) Programmable Option Select configuration byte 2
  376.  21h - (AMI) First Hard Disk user defined: Landing Zone, Low Byte
  377.  21h - (AMSTRAD) BYTE mouse X scaling factor, default: 0Ah
  378.  21h - (PHOENIX) First user defined hard disk (type 48) Cylinders MSB
  379.  
  380. ---------------------------------------------
  381.  22h - (MCA) Programmable Option Select configuration byte 3
  382.  22h - (AMI) First Hard Disk user defined: Landing Zone, High Byte
  383.  22h - (AMSTRAD) BYTE mouse Y scaling factor default: 0Ah
  384.  22h - (PHOENIX) First user defined hard disk (type 48)  of Heads
  385.  
  386. ---------------------------------------------
  387.  23h - (MCA) Programmable Option Select configuration byte 4
  388.  23h - (AMI) First Hard Disk user defined: # of Sectors per track
  389.  23h - (AMSTRAD) BYTE initial VDU mode and drive count  default: 20h
  390.     bit 7:  enables extended serial flow control
  391.             (NB this is buggy)
  392.     bit 6:  set if two floppy drives installed
  393.     bits 5 & 4: (from Amstrad 1640 tech ref)
  394.          0   0      Internal video adapter
  395.          0   1      CGA card added; 40 x 25 mode
  396.          1   0      CGA card added; 80 x 25 mode
  397.          1   1      mono card added; 80 x 25 mode
  398.  23h - (PHOENIX) First user defined hard disk (type 48) Write Precomp. LSB
  399.  
  400. ---------------------------------------------
  401.  24h - (MCA) Programmable Option Select configuration byte 5
  402.  24h - (AMI) Second Hard Disk user defined: # of Cylinders, Low Byte
  403.  24h - (AMSTRAD)    BYTE initial VDU character attribute, default: 7h
  404.  24h - (PHOENIX) First user defined hard disk (type 48) Write Precomp. MSB
  405.  
  406. ---------------------------------------------
  407.  25h - (AMI) Second Hard Disk user defined: # of Cylinders, High Byte
  408.  25h - (AMSTRAD)    BYTE size of RAM disk in 2K blocks
  409.         default: 0  - only used by the RAMDISK software supplied.
  410.  25h - (PHOENIX) First user defined hard disk (type 48) Parking zone LSB
  411.  
  412. ---------------------------------------------
  413.  26h - (AMI) Second Hard Disk user defined: Number of Heads
  414.  26h - (AMSTRAD)    BYTE initial system UART setup byte
  415.             default: E3h - format as for Int 14h fn 0
  416.  26h - (PHOENIX) First user defined hard disk (type 48) Parking zone MSB
  417.  
  418. ---------------------------------------------
  419.  27h - (AMI) Second Hard Disk user defined: Write Precompensation Cylinder, 
  420.        Low Byte
  421.  27h - (AMSTRAD)    BYTE initial external UART setup byte
  422.             default: E3h - format as for Int 14h fn 0
  423.  27h - (PHOENIX) First user defined hard disk (type 48) Sectors per track
  424.  
  425. ---------------------------------------------
  426.  28h - (AMI) Second Hard Disk user defined: Write Precompensation Cylinder, 
  427.        High Byte
  428.  28h - (HP Vectra) checksum over words 29h-2Dh
  429.  
  430.  28h-3Fh (AMSTRAD) 24 BYTEs user applications default: zeroes
  431.  
  432. ---------------------------------------------
  433.  29h - (AMI) Second Hard Disk user defined: Control Byte (80h if # of heads 
  434.        is equal or greater than 8)
  435.  29h - (PHOENIX) LSB word to Intel 82335 CC0 compare register
  436.  
  437. ---------------------------------------------
  438.  2Ah - (AMI) Second Hard Disk user defined: Landing Zone, Low Byte
  439.  2Ah - (PHOENIX) MSB word to Intel 82335 CC0 compare register
  440.  
  441. ---------------------------------------------
  442.  2Bh - (AMI) Second Hard Disk user defined: Landing Zone, High Byte
  443.  2Bh - (PHOENIX) LSB word to Intel 82335 CC1 compare register
  444.  
  445. ---------------------------------------------
  446.  2Ch - (AMI) Second Hard Disk user defined: # of Sectors per track
  447.  2Ch - (COMPAQ) bit 6:  0 - numlock OFF on boot, 1 - numlock ON at boot
  448.  2Ch - (PHOENIX) MSB word to Intel 82335 CC1 compare register
  449.  
  450. ---------------------------------------------
  451.  2Dh - (AMI) Configuration Options 
  452.   Bit 7 Weitek Installed(1 = On)
  453.   Bit 6 Floppy Drive Seek - turn off for fast boot
  454.   Bit 5 Boot Order 0 - Drive C:, then A:
  455.                    1 - Drive A:, then C:
  456.   Bit 4 Boot Speed (0 - Low; 1 - High)
  457.   Bit 3 External Cache Enable (1 = On)
  458.   Bit 2 Internal Cache Enable (1 = On)
  459.   Bit 1 Use Fast Gate A20 after boot (1 = On)
  460.   Bit 0 Turbo Switch (1 = On)
  461.  2Dh - (PHOENIX) Checks for values AAh or CCh
  462.   
  463. ---------------------------------------------
  464.  2Eh - Standard CMOS Checksum, High Byte
  465.  2Fh - Standard CMOS Checksum, Low Byte
  466.  
  467.  2Eh and 2Fh are as defined by the original IBM PC/AT specification and
  468.  represent a byte-wise additive sum of the values in locations 10h-2Dh only,
  469.  00h-0Fh and 30h-33h are not included. This definition is used by most
  470.  clone manufacturers including AMI, Compaq, Tandon, NEC, and Zenith. The 
  471.  IBM PS/2 line does not follow this standard with the range 19h-31h being 
  472.  undefined.
  473.  
  474. ---------------------------------------------
  475.  30h - Extended Memory in K, Low Byte
  476.  
  477. ---------------------------------------------
  478.  31h - Extended Memory in K, High Byte 
  479.  (??? this appears to mirror the value in bytes 17h-18h.) 
  480.  
  481. ---------------------------------------------
  482.  32h - Century Byte (BCD value for the century - currently 19)
  483.  32h - (IBM-PS2) Configuration CRC low byte. CRC for range 10h-31h
  484.  
  485. ---------------------------------------------
  486.  33h - Information Flag
  487.   Bit 7 128K (??? believe this indicates the presence of the special 128k
  488.               memory expansion board for the AT to boost the "stock" 512k
  489.               to 640k - all machines surveyed have this bit set)
  490.   Bits 6-0 ???
  491.  33h - (IBM PS/2) Configuration CRC high byte (see entry for 32h)
  492.  33h - (PHOENIX) Bit 4 (000x 0000) bit 4 from Intel CPU register CP0
  493.  
  494. ---------------------------------------------
  495.  34h - (AMI) Shadowing & Boot Password
  496.   Bits 7-6 Password Selection
  497.    00b Disable 10b Reserved
  498.    01b Set     11b Boot
  499.   Bit 5 C8000h Shadow ROM (Bit 1 = On) 
  500.   Bit 4 CC000h Shadow ROM (Bit 1 = On)
  501.   Bit 3 D0000h Shadow ROM (Bit 1 = On)
  502.   Bit 2 D4000h Shadow ROM (Bit 1 = On)
  503.   Bit 1 D8000h Shadow ROM (Bit 1 = On)
  504.   Bit 0 DC000h Shadow ROM (Bit 1 = On)
  505.  
  506. ---------------------------------------------
  507.  35h - (AMI) Shadowing
  508.   Bit 7 E0000h Shadow ROM (Bit 1 = On)
  509.   Bit 6 E4000h Shadow ROM (Bit 1 = On)
  510.   Bit 5 E8000h Shadow ROM (Bit 1 = On)
  511.   Bit 4 EC000h Shadow ROM (Bit 1 = On)
  512.   Bit 3 F0000h Shadow ROM (Bit 1 = On)
  513.   Bit 2 C0000h Shadow ROM (Bit 1 = On)
  514.   Bit 1 C4000h Shadow ROM (Bit 1 = On)
  515.   Bit 0 Reserved
  516.  35h - (PHOENIX) Second user defined hard disk (type 48) Cylinders LSB
  517.        NOTE: used only when PS/2 style password is NOT in effect.
  518.  
  519. ---------------------------------------------
  520.  36h - (PHOENIX) Second user defined hard disk (type 48) Cylinders MSB
  521.        NOTE: used only when PS/2 style password is NOT in effect.
  522.  
  523. ---------------------------------------------
  524.  37h - (IBM PS/2) Date Century Byte 
  525.  37h - (PHOENIX) Second user defined hard disk (type 48) # of heads
  526.        NOTE: used only when PS/2 style password is NOT in effect.
  527.  
  528. ---------------------------------------------
  529.  38h-3Dh (AMI) Encrypted Password
  530.  
  531.  38h-3Fh ??? (IBM PS/2) Encrypted Password. Initialized to 00h in all
  532.      bytes. Will accept from 1-7 scan codes. 
  533.  
  534.  38h - (PHOENIX) Second user defined hard disk (type 48) Write Precomp. LSB
  535.        NOTE: used only when PS/2 style password is NOT in effect.
  536.  
  537.  39h - (PHOENIX) Second user defined hard disk (type 48) Write Precomp. MSB
  538.        NOTE: used only when PS/2 style password is NOT in effect.
  539.  
  540.  3Ah - (PHOENIX) Second user defined hard disk (type 48) Parking Zone LSB
  541.        NOTE: used only when PS/2 style password is NOT in effect.
  542.  
  543.  3Bh - (PHOENIX) Second user defined hard disk (type 48) Parking Zone MSB
  544.        NOTE: used only when PS/2 style password is NOT in effect.
  545.  
  546.  3Ch - (PHOENIX) Second user defined hard disk (type 48) Sectors per track
  547.        NOTE: used only when PS/2 style password is NOT in effect.
  548.  
  549.  3Eh - (AMI) Extended CMOS Checksum, High Byte (includes 34h - 3Dh)
  550.  
  551.  3Fh - (AMI) Extended CMOS Checksum, Low Byte (includes 34h - 3Dh)
  552.  
  553. ---------------------------------------------
  554.  
  555.  End of original 64 CMOS RAM bytes. Many modern chips now contain 128
  556.  bytes and the IBM PS/2 has provision for 2k of "Expansion CMOS". 
  557.  The AMI HI-FLEX description is below. If the chip does have only
  558.  64 bytes, addresses will wrap so that requests for bytes 40h-7Fh will 
  559.  return the same values as 00h-3Fh.
  560.  
  561.  40h ???
  562.  
  563.  41h - (AMI)
  564.   Bits 7-6 IOR/IOW Wait states
  565.   Bits 5-4 16-bit DMA Wait States
  566.   Bits 3-2  8-bit DMA Wait States
  567.   Bit 1    EMR bit
  568.   Bit 0    DMA Clock Source
  569.  
  570.  42h-43h ???
  571.  
  572.  44h - (AMI)
  573.   Bit 4 NMI Power Fail Warning
  574.   Bit 3 NMI Local Bus Timeout
  575.  
  576.  45h - (AMI) 
  577.   Bits 7-6 AT Bus 32-Bit Delay
  578.   Bits 5-4 AT Bus 16-Bit Delay
  579.   Bits 3-2 AT Bus 8-Bit Delay
  580.   Bits 1-0 AT Bus I/O Delay
  581.  
  582.  46h - (AMI)
  583.   Bits 7-6 AT Bus 32 Bit Wait States
  584.   Bits 5-4 AT Bus 16 Bit Wait States
  585.   Bits 3-2 AT Bus  8 Bit Wait States
  586.   Bits 1-0 AT Bus Clock Source
  587.  
  588.  47h - 50h ???
  589.  
  590.  51h - (AMI)
  591.   Bit 7    Bank 0/1 RAS Precharge
  592.   Bit 6    Bank 0/1 Access Wait States
  593.   Bits 3-2 Bank 0/1 Wait States
  594.  
  595.  52h ???
  596.  
  597.  53h - (AMI)
  598.   Bit 7    Bank 2/3 RAS Precharge
  599.   Bit 6    Bank 2/3 Access Wait States
  600.   Bits 3-2 Bank 2/3 Wait States
  601.  
  602.  54h-7Fh ???
  603.  
  604.  
  605. Revision History
  606.  
  607. v1.23   June, 1994    Added some MCA info from _The_Undocumented_PC_
  608. v1.22   Feb,  1994      Added NMI mask note
  609. v1.21   Jan,  1994      Added note for PS/2 checksum found
  610. v1.20    Sept, 1993      PHOENIX data from Wim Osterholt added
  611.                         additional AMI data from Howie (hjh@gwd.dst.gov.au)
  612. v1.15   June, 1993      AMSTRAD data updated
  613. v1.1     June, 1993    AMSTRAD & PS/2 data added 
  614. v1.0    June, 1993    First release: Motorola MC 146818,  PC-AT & AMI 
  615.                         "Hi-Flex" information baselined
  616.