|
|
发表于 2008-7-21 13:02:13
|
显示全部楼层
你确认访问的位置是Bus0:Device2:Function0的Reg48h吗?: P+ }, ~) ^. E/ U
请用下面这段代码来试试9 W8 S6 h. z* Y' j% Y# K7 U1 w
reg:BYTE+ n+ z7 B* M0 K u% F
mov ax,0b108h" u5 O5 `. ~1 c; q' B2 d; C
mov bx,10h9 J% c- z. p' ^% @+ z
mov di,48h# }" h7 X! U/ o# |
int 1ah7 t( Y6 @8 w+ A7 `! Y
mov reg,cl ;get RTC Control Register( X) f% J1 Q9 X5 Q
( H0 ~$ X! r( ~# d3 f0 k; A
mov cl,reg: \& ?" j+ a, X% J( C- ~) O/ t
and cl,3fh! j: b2 S% _* z4 f( R; h
or cl,40h ;set APCREG_EN* E+ i4 o( v+ s$ T
mov ax,0b10bh
: J7 e* A/ H9 f, y# V mov bx,10h
# E8 i- ?5 X- F mov di,48h
: P; G: `- G: Z. R int 1ah
1 V5 x. v. Q; g- u7 e //now can access the APC register
+ V% a) G$ u. n$ e0 R+ z * h) @8 M% X- m& [: I
mov cl,reg+ L4 m! V( A- K0 p- k+ a: ~
mov ax,0b10bh
# P* ]7 A2 g7 F- Z7 X7 _# @ H! r mov bx,10h
V* Q3 U. I/ J3 @ mov di,48h
, M+ c. `7 o R4 s' Y9 B* x, `( c int 1ah ;Restore |
|