🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.acorn.tech
Article #205

Reading from the CMOS clock

#205
From: Nick Smith
Date: Tue, 01 Sep 1992 10:41
18 lines
1362 bytes
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. ---
Technical Details
Message-ID: <1992Sep1.104148.12279@infodev.cam.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!warwick!pavo.csi.cam.ac.uk!cl.cam.ac.uk!nas20

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.acorn.tech
Path: arc1-ca.pugleaf.net!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