|
发表于 2008-7-21 13:02:13
|
显示全部楼层
你确认访问的位置是Bus0:Device2:Function0的Reg48h吗?0 ]% ?5 _- b# j1 F# y d2 F
请用下面这段代码来试试
# V) i; o1 @5 P( \ reg:BYTE
+ f' t0 M3 ^# t7 o5 a: c4 d" v5 b mov ax,0b108h* C& T9 O0 N: O$ _. d& ?- F
mov bx,10h& E3 g- T6 w* C, K
mov di,48h+ P4 H+ o7 y3 i( D* g0 A
int 1ah
+ K' j' a* l) i mov reg,cl ;get RTC Control Register
- P3 B: f/ ~) q" g- T! i
5 ?. S1 z% E! C$ H, Z- l. d. q mov cl,reg a9 p7 s% n5 Q
and cl,3fh
1 y8 s8 z3 o& B6 |9 [. Y or cl,40h ;set APCREG_EN
3 P9 h! H% l+ r' Z# f, ? mov ax,0b10bh
0 G0 L2 W9 S. V# q3 }+ b, a) c mov bx,10h
( @3 J0 f: ]: S, W) k mov di,48h
) p" s, v) d! h; Y* } int 1ah& H2 S# g+ b" Z/ M7 x- W
//now can access the APC register 4 E$ Q! }! [7 ?7 z0 q
8 @) J3 @/ g: j
mov cl,reg) {% t$ }/ G3 C3 F; c
mov ax,0b10bh
. a5 W* p ~# j: e! J mov bx,10h4 K( L" U, D+ @. _- k/ R0 s$ D
mov di,48h& R6 q& o1 ~, {
int 1ah ;Restore |
|