Page 1 of 1

Real Time Clock

Posted: Fri Jul 05, 2002 1:26 pm
by K.J.
Okay, I have the real time clock working in Bochs, but not on a real comp. I have an ISR for the interrupt that it triggers that increments a value. In Bochs, the ISR is called, but not on a real comp. Here is my code for enabling the rtc:

[tt]
[bits 32]

[global _enable_rtc]
_enable_rtc:
   mov al, 0x0B
   out 0x70, al
   mov ah, 0x0   ; delay(not sure if a delay is needed... but it can't hurt)
   inc ah      ; delay
   inc ah      ; delay
   in al, 0x71
   or al, 0x40
   out 0x71, al
   ret
[/tt]

This is correct as far as I know, the rest of my code may be found at http://users.demented.org/~osmaker/code/

Thanks in advance,
K.J.

Re:Real Time Clock

Posted: Fri Jul 05, 2002 9:24 pm
by Chris Giese
I can only imagine what this board is going to do to the following URL, but here goes:

http://groups.google.com/groups?q=rtc+g ... com&rnum=1

Re:Real Time Clock

Posted: Sat Jul 06, 2002 1:42 am
by sonneveld
The board actually lets you post proper urls.

Try this:

Code: Select all

[url = "address"] title [/url]
- Nick

Re:Real Time Clock

Posted: Sun Jul 07, 2002 12:51 am
by K.J.
Thanks a million Chris, that was just what I needed.

K.J.