Date: Mon, 24 Jan 2000 23:16:24 +0500 (MVT) From: Prashant TR To: Yong-Kwang Goh cc: djgpp AT delorie DOT com Subject: Re: Saving CMOS to File In-Reply-To: <86em9b$e9c$1@mango.singnet.com.sg> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 23 Jan 2000, Yong-Kwang Goh wrote: > How do I save the contents of CMOS to file? In other word, how do I access > the CMOS memory's contents? outportb(0x70, ram address); // CMOS RAM address can be from 0 to 127. inportb(0x71);// Gets you the byte at that address. Doing outportb(0x71, value) will write to the CMOS byte. Be careful while doing this!