|
|
发表于 2008-7-21 13:02:13
|
显示全部楼层
你确认访问的位置是Bus0:Device2:Function0的Reg48h吗?% f: F1 X, T2 _: t
请用下面这段代码来试试+ ~. G: k6 M7 F, ~# }3 |% a% i% G8 r
reg:BYTE9 D4 E% |& w5 U7 Y$ T% m
mov ax,0b108h
5 \& o" C. F' D+ u& s" U mov bx,10h6 ~0 q9 ~8 p3 F6 M- Q
mov di,48h: e' t$ y; g& h/ w2 w
int 1ah* y8 }( J) P4 K1 K, V
mov reg,cl ;get RTC Control Register9 r8 m: @& f( ^0 t3 i4 P6 f
* |: |! w! M2 \; l2 X$ V! g4 k
mov cl,reg
" x3 [! _! K" P4 s and cl,3fh
: ^1 c& d4 q9 S4 v) e or cl,40h ;set APCREG_EN% U4 P, U W8 C8 l5 H4 k/ T
mov ax,0b10bh- ?# n! |6 |# g9 }4 ^6 a/ Q* f' t
mov bx,10h7 r, {6 O. A: W
mov di,48h
1 I1 h6 e2 q( T int 1ah
0 r* F4 l6 t3 r( t0 V# W$ w //now can access the APC register ( k( _0 f# T* t7 `# w" `
J( i; ]3 U( e$ I" X
mov cl,reg
( t1 M$ \+ c. d; ?" }% f: o mov ax,0b10bh
% C! x. `9 |3 r0 b mov bx,10h
: Y7 `6 ^8 M9 V& w6 r0 ` l mov di,48h$ g( I2 J$ c5 \5 j5 K
int 1ah ;Restore |
|