|
|
发表于 2008-7-21 13:02:13
|
显示全部楼层
你确认访问的位置是Bus0:Device2:Function0的Reg48h吗?% k4 E" V* G6 r+ j0 A5 S1 S9 i
请用下面这段代码来试试- d/ w8 g: |- M
reg:BYTE" m; i; ^" h. g+ j/ p, ?
mov ax,0b108h
0 F( \6 @- w( E- O mov bx,10h
/ ?2 `5 x/ |% I7 N U mov di,48h9 G9 g* G! S! p# P1 c
int 1ah
9 {. o9 L" j5 Q" _" [. v# I mov reg,cl ;get RTC Control Register! p$ x0 K0 `# a% c( }
: t& Y) m- B* } mov cl,reg# j; R G, ^0 c7 N) i! ~9 ~
and cl,3fh
5 g: o* m8 c. k8 M3 u6 ~ S or cl,40h ;set APCREG_EN
7 M+ \0 `3 O9 x' w% s, j7 M mov ax,0b10bh3 Z# g( H0 o. }# u
mov bx,10h) g1 a# u5 H+ s! F$ k% B9 `1 Y
mov di,48h' x( d+ e# z& U- T+ }
int 1ah
* o% y1 s" t- ` //now can access the APC register 9 e( g* r8 |! j% J5 A
1 N# U$ ~/ e' b% L- j mov cl,reg* v$ `& t: i: u6 T/ T" v9 a
mov ax,0b10bh
7 ~. Z# d; i3 G; _# J* i. ~0 ] mov bx,10h
$ c" a0 Z4 }6 w" b! e mov di,48h% n% l8 |3 I* O8 ^3 I- m- W
int 1ah ;Restore |
|