Hi, people!
Wanna ask you:
Does anyone of you know how to improve time-support (e.g. how to know in my own OS what time is it).
I've got linux 0.0-0.1 kernel, there is one way, but I cannot use it (if I do - my OS will be a Linux 0.0-0.1 kernel! )
Thanks for trying.
CMOS and clock (like a IRQ8)
CMOS and clock (like a IRQ8)
Don't think a ****, but in ukrainian schools English is TOO BAD!
Re: CMOS and clock (like a IRQ8)
well,
to use the CMOS, you only need to do the fowling:
( it would be a good ideer to see this page, to understand what is happning here: http://www.bioscentral.com/misc/cmosmap.htm)
now you have the hours in al
The format of the time is: XY
meaning that if the hour is 16 (24 hour system)
the value of al is "16"
Hope it helps
KMT dk
to use the CMOS, you only need to do the fowling:
( it would be a good ideer to see this page, to understand what is happning here: http://www.bioscentral.com/misc/cmosmap.htm)
Code: Select all
mov ax,0x04 ; INDEX 4 "REAL TIME COUNT"hours
out 0x70,al ; CMOS input port
in al,0x71 ; CMOS data port
The format of the time is: XY
meaning that if the hour is 16 (24 hour system)
the value of al is "16"
Hope it helps
KMT dk
well, what to say, to much to do in too little space.
when it goes up hill, increase work, when it goes straight, test yourself but when going down, slow down.
when it goes up hill, increase work, when it goes straight, test yourself but when going down, slow down.
Re: CMOS and clock (like a IRQ8)
Thanks, KMT dk!
Really interesting link.
Daniel.
Really interesting link.
Daniel.
Don't think a ****, but in ukrainian schools English is TOO BAD!
- Troy Martin
- Member
- Posts: 1686
- Joined: Fri Apr 18, 2008 4:40 pm
- Location: Langley, Vancouver, BC, Canada
- Contact:
Re: CMOS and clock (like a IRQ8)
Well this is quite useful! I think I'm going to use this in my OS