|
|
发表于 2008-7-21 13:02:13
|
显示全部楼层
你确认访问的位置是Bus0:Device2:Function0的Reg48h吗?5 M! u2 o$ R/ m8 z7 o4 i7 ?& L
请用下面这段代码来试试
1 D4 y2 b/ P% }: V+ k& q$ }$ P! o reg:BYTE
* r. \& G, i1 m mov ax,0b108h
/ o2 S+ c" K$ u/ i: u mov bx,10h
7 L8 K X5 r( |& N9 ? mov di,48h+ M! e( |8 j9 V; @" B+ j) U: l
int 1ah
4 m4 L% S- z; O* c' H7 g mov reg,cl ;get RTC Control Register6 N( u4 B9 R1 N: G n8 w0 h, f
; h& }/ v( b. i6 _+ A5 P mov cl,reg
; P1 z! X. `: i8 U9 } and cl,3fh' q1 q' x, I: q7 [4 U n
or cl,40h ;set APCREG_EN3 Q/ i- p$ x# p6 N
mov ax,0b10bh% h* ^* y3 O3 \9 ]; x( N5 t
mov bx,10h% t% ]6 {% j' t$ L) ]/ g
mov di,48h0 A9 d2 W; v; {; x( D. a
int 1ah
3 i: _5 m) E0 t2 S2 U1 E8 [ //now can access the APC register
, ?: W( _- y/ L/ R j& _ $ z% V! \' Z+ D" H( n
mov cl,reg& I3 V- b+ O6 O+ @# J
mov ax,0b10bh
: _5 l: I* M, G- A( L/ L mov bx,10h
* Y$ R1 o4 m: M# } L& M mov di,48h3 } I, z. a N+ ?" F
int 1ah ;Restore |
|