|
发表于 2008-7-21 13:02:13
|
显示全部楼层
你确认访问的位置是Bus0:Device2:Function0的Reg48h吗?
1 H& O( M9 x8 x8 v6 P, S7 m% y请用下面这段代码来试试3 G. Z* `3 ^. L, R, ?# m5 Z$ D
reg:BYTE
j2 m4 a- r$ ?2 L8 D mov ax,0b108h8 K. I. r5 L0 ?3 J& ~% e3 b& U
mov bx,10h
( K& q7 M5 y3 ~: S1 k! D& r mov di,48h
6 W j2 E* \8 s" y int 1ah
3 s' U' m, ?6 D, A/ J mov reg,cl ;get RTC Control Register1 \/ ]2 _& j1 ?) R* k
0 Z) \5 i# O2 c9 F8 W( ? mov cl,reg, Q E; Y H# W& T; E
and cl,3fh
; P- A" i! C+ Y or cl,40h ;set APCREG_EN
) Y! O" a6 U/ G- B! @/ t1 q mov ax,0b10bh' G8 q$ ~8 p3 y" ^3 s! T
mov bx,10h
- T+ Z/ Y- t9 B mov di,48h
4 `1 k! O0 W1 V9 V7 _& Z/ @6 }: E int 1ah: h8 j( t! G1 _2 v1 v0 U+ N0 e1 P
//now can access the APC register & g& I: U6 T% x2 i4 C! B0 h
% {5 j2 ]5 P1 J3 X- Y$ H% o
mov cl,reg
& @! ~/ I4 F; A) s/ i mov ax,0b10bh
2 Q/ U3 ^- A' ]* F! r3 t% d" L5 k6 ` mov bx,10h
) E' ~0 x5 P. Y( v( b mov di,48h
% z" \8 t& o' }8 }/ r9 q$ E+ A int 1ah ;Restore |
|