delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/24/05:26:58

Date: Mon, 24 Jan 2000 09:18:52 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Yong-Kwang Goh <ykgoh1 AT singnet DOT com DOT sg>
cc: djgpp AT delorie DOT com
Subject: Re: Saving CMOS to File
In-Reply-To: <86em9b$e9c$1@mango.singnet.com.sg>
Message-ID: <Pine.SUN.3.91.1000124091829.10104A-100000@is>
MIME-Version: 1.0
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

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?

You access the CMOS by reading port 71h.  Before reading, you need to
disable all interrupts and the NMI, and write to port 70h the number
of the CMOS register you want to access.

I suggest to consult a good book for the details.  For example,  "The
Undocumented PC" by Frank van Gilluwe has an entire chapter on reading
the CMOS.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019