Hi,ALL

who can tell me why I can't read CMOS register under winXP with

winIO.

the attached file is my source!




:confused:

thanks
Posted on 2002-06-27 20:05:22 by jerrygao2001
Hi jerrygao2001!

This one works for me:

1. DownLoad latest winio package (v. 2 available now fro XP too)
2. use this in your reg_read f-n:



reg_read PROC

pusha
movzx ebx, bx
mov dat4write, ebx
invoke SetPortVal, 070h, dat4write, 2
invoke GetPortVal, 071h, addr szTemp, 2
popa

mov eax, szTemp
ret
reg_read ENDP
[\CODE]
Posted on 2002-06-29 14:32:37 by Andycar