Log in

View Full Version : How to access CMOS ram


Aquatic
March 8th, 2004, 22:02
Here is an interesting article that explains how to read/write CMOS ram.

http://www.programmersheaven.com/2/Art_C_1


I don't know if any useful code could be written to the CMOS. Doesn't Softice use the CMOS to become kernel-mode?

Kayaker
March 9th, 2004, 01:31
I coded a MASM example of accessing the RTC/CMOS a while back, crashes on Win2K though. I think I remember you can't use IN/OUT anymore, but I think I also remember seeing a mention of someone getting around that, if I'm recalling things correctly. It was a shareware app of some kind, which of course I can't find now. Anyone know if there's a way to access the CMOS programatically on NT systems?

Little lame 9x example of reading the RTC clock

http://www.woodmann.com/forum/showthread.php?t=2554&highlight=rtc+cmos

evaluator
March 9th, 2004, 02:26
KmdKit10 there is example driver- Beeper..
also much easy driver can be done.

least
March 9th, 2004, 03:32
I'm affraid that in CMOS can't be any kind of code since it is accessed through IN/OUT instructions; it is used to store info you see when you get in BIOS - so it is not good idea trying to write to it. To access it you'd probably need to write KMD right as evaluator says.