home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / acorn / tech / 85 < prev    next >
Encoding:
Text File  |  1992-09-01  |  1.3 KB  |  31 lines

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