|
|
发表于 2008-7-21 13:02:13
|
显示全部楼层
你确认访问的位置是Bus0:Device2:Function0的Reg48h吗?
4 g; ?% D) {" E. `* Q请用下面这段代码来试试
! n& `% G$ f5 d; S) e reg:BYTE) G: T" T) G: X$ k3 D' ~
mov ax,0b108h
5 a2 u$ a- f$ t mov bx,10h; C- L* E% \/ p
mov di,48h
! x; e+ K U+ w- m9 v7 `# L int 1ah
]/ m+ E( M5 |. ` mov reg,cl ;get RTC Control Register/ X7 i/ {6 K8 ~2 Z9 ~' |6 C
* \2 y% {4 B# |2 U* b
mov cl,reg
: h9 k" h) s) \ and cl,3fh
% M7 _! u }5 J5 u: g or cl,40h ;set APCREG_EN! z, M3 M, Q1 b' `7 ?& Y5 M
mov ax,0b10bh
! n$ f: i9 `* J+ `" x4 z. P mov bx,10h( r0 g0 m% `% E( I T+ G/ U
mov di,48h
1 F+ b1 N. W- G* o& W+ h int 1ah
0 d# {5 c h% T, q' N# B) Y //now can access the APC register & A+ J I3 O# j; T# u1 F7 Q/ @
" {* W( }. s2 h
mov cl,reg" H Q4 \/ z( @' U$ F3 g4 \
mov ax,0b10bh
; S) o8 _! J5 S V( h9 C0 N mov bx,10h
, M( t5 y) _% I9 s) s mov di,48h4 x; G7 F' n" ?$ t# Q& e
int 1ah ;Restore |
|