Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!humming!simcha From: simcha@humming.UUCP (Simcha Lerner) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: Reading time and date without using bios or dos ? Message-ID: <263@humming.UUCP> Date: 7 Feb 89 21:33:40 GMT References: <4368@okstate.UUCP> <17841@gatech.edu> <891@mannix.iros1.UUCP> Reply-To: simcha@humming.UUCP (Simcha Lerner) Organization: Kurzweil A.I. Waltham, Mass. Lines: 20 In article <891@mannix.iros1.UUCP> mercier@iros1.UUCP (Denis Mercier) writes: >I want to know, if it is possible, where and how i can read time and date >set on a pc system, i know that the timer counter is at port 46cH but i >don't know how to decode the information it contains. I have to precise >that i can't use bios or dos since these routines are not reentrant and >need this in hardware interrupt routine. It will help a lot, thanks. I think that your needs would be better served by using the BIOS routines, and installing a monitor on INT 1Ah that sets and clears a flag as the routine is entered and exits, and that you condition your use of the interrupt based on whether this busy flag is set. This would protect you from any hardware differences that your program might be subjected to. If you want to get fancy, you could design the monitor to allow you to be called upon the call to the true int. handler exiting when you encounter a busy state. Simcha Lerner harvard!humming!simcha