|
|
发表于 2008-7-21 13:02:13
|
显示全部楼层
你确认访问的位置是Bus0:Device2:Function0的Reg48h吗?4 u5 }8 l$ [. o1 E0 l# A* G9 B
请用下面这段代码来试试
: N6 m& F3 Y, [$ E reg:BYTE i1 y! B1 n/ Q6 V- W, e# {( F
mov ax,0b108h0 r' u( b5 l5 m9 ?8 p( ?
mov bx,10h
! w% t7 e! g) j; |9 Y# Z5 c/ A mov di,48h4 ` E' d( F, c
int 1ah% `/ ^9 b: e7 k8 t# @' ?! Y; }( o* l
mov reg,cl ;get RTC Control Register% \+ f4 S- B; D" g3 k% P
& c5 J. i" h. N. e; b
mov cl,reg
+ ?4 }* V5 n" ^7 A4 {" s* L: b and cl,3fh
/ i [6 f& P, N0 Z3 ~) C) i or cl,40h ;set APCREG_EN6 c: W6 C+ h5 b7 E* N
mov ax,0b10bh2 ~3 e# _/ Y, }1 r6 F: U2 x
mov bx,10h
1 q5 E# n; l; T mov di,48h
, T a( k! \0 }: u) Y" K int 1ah
+ `3 k( V' `8 P* C //now can access the APC register
5 b# y( d+ D4 @, G 6 h. X+ u+ V4 u6 m4 ^# y" [+ d
mov cl,reg
0 A) |7 D! j. k mov ax,0b10bh
1 b/ P; d j: s! p! H mov bx,10h8 a; R; p/ b" ?$ L; ?, a
mov di,48h
+ O9 u+ V- s0 r* t int 1ah ;Restore |
|