|
|
发表于 2008-7-21 13:02:13
|
显示全部楼层
你确认访问的位置是Bus0:Device2:Function0的Reg48h吗?
1 U) ]$ E; D! h+ N% D8 z请用下面这段代码来试试
4 y; G n# l+ |5 l) T) ~ reg:BYTE6 g J- i: B3 p) c$ e# }- d
mov ax,0b108h1 m& y1 ?3 E7 B9 [
mov bx,10h! w, S: j4 N8 l! C8 G! O7 c9 Y
mov di,48h
; Q2 G& ^# W5 w int 1ah
: V2 B* }" T+ Z! ^" c4 O7 p mov reg,cl ;get RTC Control Register7 _! S6 F5 P2 u" l/ e; X9 F8 T5 w8 [; e
- o! q2 `' j$ o
mov cl,reg1 H6 o* @2 |) S% T
and cl,3fh7 W9 x/ n0 @# c4 ~7 W' Z4 ~1 G! |& ^
or cl,40h ;set APCREG_EN
; _4 U1 ~9 y7 R- _ mov ax,0b10bh
. B; @! R5 J5 `! E1 D: F% j mov bx,10h o4 b! `5 @# Y
mov di,48h' O$ N+ C) {" H' v% D* B$ i
int 1ah
/ E7 p. ], f2 O2 s5 H1 e //now can access the APC register 9 |% R4 G" G% l. ]) v* t% c
4 f9 I* W/ G( }% @. L! L# a+ O/ z mov cl,reg
2 T# E% ]! O8 P- X8 L mov ax,0b10bh2 Y& o" g. ?( \; ]9 y
mov bx,10h
+ O- l2 y& F, j7 E* e- ]+ h mov di,48h
% ]7 c& S( ?2 m2 Z$ h$ G int 1ah ;Restore |
|