|
|
发表于 2008-7-21 13:02:13
|
显示全部楼层
你确认访问的位置是Bus0:Device2:Function0的Reg48h吗?
1 D9 [ q) T) c( s请用下面这段代码来试试! f$ e% b- }1 f, o$ c
reg:BYTE2 r) E+ W' K. s/ }6 E
mov ax,0b108h
2 T! v: O8 Q! f5 |- c& r$ L6 H; Q mov bx,10h
1 M6 S. R) M+ s+ e mov di,48h
$ B3 {; G+ q/ q6 _5 N) G; Z int 1ah A- l& Y. O |. G7 d- s% ~; y
mov reg,cl ;get RTC Control Register3 G' J3 N3 w4 t% F+ F* s4 o
: y. L7 ^5 i# Y9 V: u/ U% Z mov cl,reg
6 @2 Q* B4 Q1 {) H5 a* l3 ] and cl,3fh
5 [" x! c; M4 g" W& d0 k3 {$ ` or cl,40h ;set APCREG_EN
z' n, X! U* a0 u0 r7 G5 C mov ax,0b10bh
. \ c: o) R, S mov bx,10h
5 c) Y) J. t' b: @$ r: ]3 _ mov di,48h
( S' V+ A' G% _4 T int 1ah
, Q+ u/ H4 d: E3 c' N6 H //now can access the APC register
& k; T' D9 R, U" Z* d- ~) R 2 L% U) v0 X( A- x
mov cl,reg% ~/ X" Y$ f# M1 r
mov ax,0b10bh
( Y* @: T! `+ \ mov bx,10h
* V3 D! Z+ }/ ~ mov di,48h
& u' L/ ]2 i% t7 m int 1ah ;Restore |
|