home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / UTILITY / SYSTEM / CMOS13.ZIP / CMOS.TXT < prev    next >
Encoding:
Text File  |  1992-03-18  |  6.1 KB  |  209 lines

  1. CMOS.TXT
  2.  
  3. Purpose
  4. *******
  5.  
  6. 1. Naive users sometimes meddle with CMOS settings.  We need a
  7. fast way to put the scores of subtle CMOS configuration settings
  8. back the way they were.
  9.  
  10. 2. Power surges can corrupt CMOS.  We need a way for a naive
  11. user to quickly restore all the CMOS settings.
  12.  
  13. 3. If the battery fails, the contents will be lost.  We need a
  14. way to restore a known working CMOS configuration.
  15.  
  16.  
  17. Syntax
  18. ******
  19.  
  20. There are three utilities in the CMOS suite:
  21.  
  22. CMOSSAVE.COM  A:Myfile.Sav
  23. IF ERRORLEVEL 1 GO TO Trouble
  24.  
  25.         - saves a copy of CMOS in a file on hard disk or floppy.
  26.  
  27. CMOSREST.COM  A:MyFile.Sav
  28. IF ERRORLEVEL 1 GO TO Trouble
  29.  
  30.         - restores CMOS from a file on hard disk or floppy.
  31.  
  32. CMOSCHK.COM   A:MyFile.Sav
  33. IF ERRORLEVEL 1 GO TO FixIt
  34.  
  35.          - checks that CMOS has not been meddled with since the
  36.            last CMOSSAVE.  Compares CMOS with a file on hard disk
  37.            or floppy.
  38.  
  39. Hints on Use
  40. ************
  41.  
  42. Do a CMOSSAVE both to hard disk and to floppy.  The hard disk
  43. copy can be used for quick restores built into your AUTOEXEC.BAT
  44. file.
  45.  
  46. CMOSCHK.COM  C:\MyCMOS.Sav
  47. IF ERRORLEVEL 1 CMOSREST.COM  C:\MyCMOS.Sav
  48.  
  49. At that point you must reboot before the restored cmos settings
  50. take effect.  See CHKSAVE.BAT for a realistic way to handle
  51. this.
  52.  
  53. Sometimes CMOS will be so badly damaged the hard disk parameters
  54. will be corrupt and your hard disk will stop working.  In that
  55. case you will have to revert to using the floppy copy.
  56.  
  57. Whenever you change your CMOS setting deliberately, you need to
  58. redo the CMOSSAV.COM.  However USE A NEW FILENAME, so that you
  59. can easily revert to the old version if your new settings do not
  60. pan out.
  61.  
  62. How it works
  63. ************
  64.  
  65. CMOSSAVE.COM simply copies the 128 byte contents of the CMOS
  66. bytes to a file.  CMOSREST.COM copies them back.  CMOSCHK
  67. compares them with the file contents.  If they are not equal it
  68. sets ERRORLEVEL 1.
  69.  
  70. CMOSREST does not touch bytes 0 to 09 and 32h because these are
  71. volatile -- they contain the date and time.  Similarly CMOSCHK,
  72. does not panic if any of these volatile bytes differ.  However,
  73. CMOSSAVE saves all 128 bytes, so that you can browse the
  74. generated file with a hex editor to learn more about how CMOS
  75. works.
  76.  
  77. Because CMOSSave also saves the extended CMOS bytes, CMOSRest
  78. will restore the esoteric options like shadow RAM, wait states,
  79. processor clock speed, HMA enable etc.
  80.  
  81. These is no need to calculate checksums, since the checksum is
  82. saved and restored just like any other CMOS byte.
  83.  
  84. I have included a file called CHKCMOS.BAT which can be inserted
  85. in your AUTOEXEC.BAT which uses all three utilities.
  86.  
  87.  
  88. How CMOS is used
  89. ****************
  90.  
  91. CMOS is battery backed RAM that stores configuration information
  92. when the power is off.  It is on my top ten worst ideas list of
  93. all time.  The problem is, CMOS is far too easily corrupted, by
  94. programs, power or meddling.
  95.  
  96. offset  purpose
  97.  00     seconds time of day
  98.  01     seconds alarm
  99.  02     minutes time of day
  100.  03     minutes alarm
  101.  04     hours time of day
  102.  05     hours alarm
  103.  06     day of week
  104.  07     alarm day of month
  105.  08     month of year
  106.  09     year 1980=0
  107.  0A     status register A
  108. !0B     status register B alarm
  109. !0C     status register C flags
  110. !0D     status register D battery
  111. !0E     diagnostics status
  112. !0F     shutdown status
  113. !10*    diskette type
  114. !11*    reserved
  115. !12*    hard disk type
  116. !13*    reserved
  117. !14*    LSB equipment word
  118. !15*    LSB base RAM in K
  119. !16*    MSB base RAM in K
  120. !17*    LSB expansion RAM in K
  121. !18*    MSB expansion RAM in K
  122. !19*    fixed disk type C: extension
  123. !1A*    fixed disk type D: extension
  124. !1B*.2D reserved
  125. !2E*    MSB checksum
  126. !2F*    LSB checksum
  127. !30     LSB extended RAM in K above 1 MB
  128. !31     MSB extended RAM in K above 1 MB
  129.  32     BCD Century
  130. !33     128K info status byte
  131. !34..3F reserved
  132. !40..79 reserved for use by chipset maker
  133.  
  134. !       = must be restored
  135. *       = checksummed
  136.  
  137. Troubleshooting
  138. ***************
  139.  
  140. Sometimes your CMOS will be so wrecked you cannot even get your
  141. machine limping enough to run CMOSREST from floppy.  In that
  142. case you must clear CMOS.  Do this on AMI BIOSes by holding down
  143. the INS key, powering off, powering on, then releasing the INS
  144. key.  In the worst case, remove the battery and let the
  145. capacitance on the board drain overnight to clear it.
  146.  
  147. You can then get a bare bones CMOS configured -- that just has
  148. the floppies right.  From there you can run CMOSREST.COM.
  149.  
  150. What is considered volatile and what is not, might vary for
  151. different boards.  If you have trouble restoring, DO NOT
  152. DESPAIR.  All is recorded.  A variant of the CMOSREST program
  153. could get you back.  All you need is the source.
  154.  
  155.  
  156. Author
  157. ******
  158.  
  159. CMOSSAVE, CMOSREST and CMOSCHK are copyrighted but may be freely
  160. used for any purpose except military.  MASM source is available.
  161. If you pass the files on, PLEASE PASS ON THIS DOCUMENTATION TOO.
  162. I hereby CURSE anyone to writhe in maggots if they pull the
  163. childish stunt of passing on programs without the concomitant
  164. documentation.
  165.  
  166. Please report bugs and problems to:
  167. Roedy Green
  168. Canadian Mind Products
  169. #168 - 1020 Mainland Street
  170. Vancouver BC Canada
  171. V6B 2T4
  172. (604) 684-6529
  173.  
  174. Electronic mail users can contact me on:
  175. BIX id ROEDY
  176. Zoomit id GREEN ROEDY
  177.  
  178. Harvey Fishman wrote a pair of programs similar to CMOSSAVE and
  179. CMOSREST, but to the best of my knowledge, never released them.
  180.  
  181. Shareware Status
  182. ****************
  183.  
  184. CMOSSAVE CMOSREST and CMOSCHK are shareware.  If you like them send
  185. $20 US or Canadian to:
  186.  
  187. CMOSSAVE
  188. Canadian Mind Products
  189. #168 - 1020 Mainland Street
  190. Vancouver BC Canada
  191. V6B 2T4
  192. (604) 684-6529 voice
  193. (604) 684-5541 fax
  194.  
  195. We can take Visa, but not other credit cards by phone.
  196.  
  197. Please mention the program title since we sell thousands of
  198. different products.
  199.  
  200. We in return will send you the latest version complete with MASM
  201. source for CMOSSAVE, CMOSREST, CMOSCHK, REBOOT, BOOTSAVE,
  202. BOOTREST and BOOTCHK.
  203.  
  204. If you don't register, we will not do anything mean to you.  We
  205. don't even want you to feel guilty.  This is fee is purely
  206. voluntary.  Enjoy.
  207.  
  208. -30-
  209.