|
发表于 2008-7-21 13:02:13
|
显示全部楼层
你确认访问的位置是Bus0:Device2:Function0的Reg48h吗?: V0 z2 T3 L1 n
请用下面这段代码来试试
8 x. t) V3 @! F* e0 J1 _- g" s- m, L reg:BYTE2 ]8 Q7 l/ n, J" G
mov ax,0b108h6 }8 j) S% J3 F- E0 y
mov bx,10h2 T) [9 D/ E: C; N% L
mov di,48h
& f. M( X$ ]$ `3 V) _$ d7 l4 w int 1ah
+ U) n( c8 b6 ^/ ?, v% w mov reg,cl ;get RTC Control Register
$ e- X! j* u1 _, [; H6 C& {" C , k/ _9 r9 g1 v0 }# Q
mov cl,reg, {5 |, z% U: i3 C$ A
and cl,3fh
( t2 z' d2 }( ~0 l# D or cl,40h ;set APCREG_EN
! @* q$ E+ e" E- { mov ax,0b10bh2 c/ s6 a7 _' Q9 ]+ U3 Z
mov bx,10h
4 z# x% ]0 }- A! I Y. R8 J- P3 } mov di,48h# o+ j) }+ A' V5 q- ]
int 1ah
) H6 U6 D1 G3 _6 e b //now can access the APC register
8 A! S3 t( }/ w, p* c
! T7 e/ I% H2 X9 G; Q: K mov cl,reg @1 ^+ Y# v! [$ _* t0 o w. A
mov ax,0b10bh& Y" R( ^9 z# T% m3 {
mov bx,10h' w; S. j" z& S
mov di,48h, \1 u* V9 W5 M4 L1 q
int 1ah ;Restore |
|