View Single Post
  #1  
Old 02-22-01, 11:58 PM
rehanmehkri rehanmehkri is offline
Registered User
 
Join Date: Feb 2001
Location: 33,3rd cross,MD BLOCK, Malleswaram, Bangalore-560003,Karnataka,INDIA
Posts: 25
rehanmehkri is off the scale
Thumbs up

Here is the C code for clearing your CMOS, & thus setting your default CMOS value.
Note: It may of may not clear the info of your MBR

#include<stdio.h>
#include<dos.h>
void main()
{
unsigned char i;
for(i=0;i<=255;i++)
{
outp(0x70,i);
outp(ox71,i);
}
}

if it gives any error, remove the = sign from <= & then try.

happy hacking
__________________
Rehan
Reply With Quote