|
|
发表于 2008-7-21 13:02:13
|
显示全部楼层
你确认访问的位置是Bus0:Device2:Function0的Reg48h吗?
2 Y& u* F% H9 ] U请用下面这段代码来试试
% _: G$ q3 r4 o. f) `/ v6 {+ c reg:BYTE0 G; `$ L2 `1 V4 v7 y! Z
mov ax,0b108h: H: ~: k5 C: r1 E% C7 f( j
mov bx,10h
7 M' V( w& `% P% a; @8 {$ S mov di,48h) {' A( N9 n9 b* Q7 K
int 1ah
* c! Q: L6 U$ @- a mov reg,cl ;get RTC Control Register0 T1 |3 S0 i# L; k7 |; f% a% r+ y
, `' d* P9 L* ^' T mov cl,reg
$ }8 U& d+ F, f1 b( q( s and cl,3fh
% e; { u' V0 }' D$ Z2 Z0 N5 [ or cl,40h ;set APCREG_EN
8 `5 j: t; I6 x mov ax,0b10bh
/ ~; S9 P& |: y ] mov bx,10h
) k; Y. M1 n9 f$ _; ^ mov di,48h. d4 z$ a+ `6 A0 L, n2 g4 Y8 ?
int 1ah
$ j' w7 w, P, x8 m0 j- c //now can access the APC register
/ R: B0 a8 O3 z7 L Y5 U
+ B$ V a% V3 p9 H) @ mov cl,reg
: p3 z4 \; e7 \$ E! \6 k mov ax,0b10bh
" z; @/ y" n! K mov bx,10h
/ B& c6 x% A* D mov di,48h2 D5 S- r# ~; R7 ~7 M9 _* H/ y
int 1ah ;Restore |
|