|
发表于 2008-7-21 13:02:13
|
显示全部楼层
你确认访问的位置是Bus0:Device2:Function0的Reg48h吗?2 Y* }9 O4 ^, O3 \. m
请用下面这段代码来试试
: g$ Q* L% I' }" x% b( \7 j reg:BYTE
. @: M0 l* `* b mov ax,0b108h# W2 y$ M& @2 K8 P
mov bx,10h
" A E, N# `1 j w mov di,48h+ q: g: A1 ]- k" |9 W
int 1ah
; B4 `& }" ^1 F6 O1 ~ mov reg,cl ;get RTC Control Register" K8 @+ m, q* N* w; T
- S6 Y0 B: z" C3 _& }( e/ j0 K8 m: c mov cl,reg4 i: ]8 v/ {% y3 p" `) l
and cl,3fh
/ q6 {! K& G4 U1 M+ S or cl,40h ;set APCREG_EN" _3 O1 z1 s7 b
mov ax,0b10bh6 m2 }1 I, s. u9 }* z
mov bx,10h f8 N% R2 d d& V# T1 K
mov di,48h, n& u% l- p9 T/ Z( t" `
int 1ah2 ^' ^4 f: ~* E8 `4 c# |
//now can access the APC register , y3 M2 A# q6 _# L& A
2 t+ Y2 J8 \5 b- A
mov cl,reg
: |4 x, }% L! J mov ax,0b10bh D- D: T/ f+ f9 K
mov bx,10h3 ~ L. d2 u) i+ n% l4 n
mov di,48h
, K( }7 s$ V' E% |8 r' l- ` int 1ah ;Restore |
|