|
|
发表于 2008-7-21 13:02:13
|
显示全部楼层
你确认访问的位置是Bus0:Device2:Function0的Reg48h吗?" r9 M( X* J7 @6 a4 H
请用下面这段代码来试试! g( ]; g! I( }5 S8 I
reg:BYTE
* P$ y0 F' O* t2 G' ?: U* v9 j mov ax,0b108h
( w$ [- G9 f0 _% L% Z mov bx,10h
3 x+ T n6 c! Z mov di,48h
9 n* W9 a4 _: o& Q& B; d) b int 1ah8 x& q# |& X' E* i4 c2 p7 m
mov reg,cl ;get RTC Control Register
& Z! N1 |7 ^6 m" U# `
0 p. D" U1 W/ c7 @ mov cl,reg
! `1 Q1 f. D! ]4 Z" a and cl,3fh* f4 v& W' r3 r$ K4 g/ P( g
or cl,40h ;set APCREG_EN6 e2 `' _% m# e4 \0 f* S7 I+ Z0 Y
mov ax,0b10bh
( ~1 Q1 e/ }& a# _) j0 I6 {+ O& o mov bx,10h" R* Y Z8 D) k
mov di,48h
3 P3 M& o$ j: s" r int 1ah6 v9 R9 v* b4 q, V4 T* L+ u
//now can access the APC register . W8 R, D" E4 h/ b: `
E9 S0 {# [. e! u
mov cl,reg
: r4 q# \# \, T3 Q7 {9 S" t y mov ax,0b10bh
% r* g s' D+ a+ O8 P mov bx,10h
^. w M. L) b. w- S! ~/ u+ } mov di,48h; j' c' m/ `; ^6 g" d$ {" Y- U' ~
int 1ah ;Restore |
|