|
|
发表于 2008-7-21 13:02:13
|
显示全部楼层
你确认访问的位置是Bus0:Device2:Function0的Reg48h吗?
, l/ c% \' ` j" Q9 R请用下面这段代码来试试' V" f1 f H* L I1 [/ y3 K
reg:BYTE
: G2 H7 i8 ]" M2 B! C9 Q1 w2 D mov ax,0b108h
- \' l. P" x; d6 D/ c5 t mov bx,10h2 m/ A5 t3 t e! m0 l
mov di,48h
( e2 h# {; S8 j" L- Z1 P int 1ah- m% p/ z9 i! Q3 @5 i% r% K
mov reg,cl ;get RTC Control Register
$ U# r# F! H% w5 Y' f# }4 s, d ~- Q L. m1 S9 h5 q% Z1 z
mov cl,reg
- s7 F- Y5 P% j; D and cl,3fh) f4 @8 `) L3 G/ W5 A: `" k) s
or cl,40h ;set APCREG_EN
6 b! @7 X- W: c6 A1 W! J/ L% _8 f mov ax,0b10bh
8 S' k8 k6 C8 m1 U. j mov bx,10h
+ A, S( ^& ?! h! R( R* [! v mov di,48h$ t* {& ~/ _* m& B0 T1 D
int 1ah3 O" u+ @0 x c
//now can access the APC register
q- t4 ^" d2 ]/ z 8 r2 k6 S# m! i6 Y( S4 l6 V+ d
mov cl,reg
5 F6 n' T8 J+ G- x# t0 ? { mov ax,0b10bh
+ S! x& d" e7 W# f# E; G mov bx,10h4 p m- Y N: Z& D H( u, l2 u" U
mov di,48h
5 P6 ?4 N* W. J/ _/ d3 U- y int 1ah ;Restore |
|