home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.acorn.tech
- Path: sparky!uunet!pipex!warwick!pavo.csi.cam.ac.uk!cl.cam.ac.uk!nas20
- From: nas20@cl.cam.ac.uk (Nick Smith)
- Subject: Reading from the CMOS clock
- Message-ID: <1992Sep1.104148.12279@infodev.cam.ac.uk>
- Sender: news@infodev.cam.ac.uk (USENET news)
- Nntp-Posting-Host: caxton.cl.cam.ac.uk
- Reply-To: nas20@cl.cam.ac.uk (Nick Smith)
- Organization: U of Cambridge Comp Lab, UK
- Date: Tue, 1 Sep 1992 10:41:48 GMT
- Lines: 18
-
- I'm having a little trouble with some code I'm writing at the moment:
-
- For various essential reasons, I have to turn off interrupts for upto
- several minutes at a time. What I *want* to do, is preserve the real time
- clock (I know how long I will have interrupts disabled exactly)
-
- I know that the soft copy of the realtime clock will halt during this period,
- but I felt sure that the CMOS (hardware) clock, which after all works when
- the machine is switched off, would continue happily with no interrupts ...
-
- I am using OS_Word,14,1 which claims to read the real time from CMOS clock in
- BCD (ug) format. Thing is, it contains the same value before & after the
- code with no ints. has been called.
-
- So what am I doing wrong ???!
- --
- Nick Smith, Churchill College, Cambridge, UK. %$% Email: nas20@uk.ac.cam.phx
- sig quote wanted - must be under guarantee. $%$ --- Usual disclaimer. ---
-