|
|
发表于 2008-7-21 13:02:13
|
显示全部楼层
你确认访问的位置是Bus0:Device2:Function0的Reg48h吗?
( [0 Q: [* @) h$ Q- q9 j# w请用下面这段代码来试试
# ~' @, v9 Q N( D4 m# ` s. D7 s reg:BYTE8 R9 W$ y/ v w; k4 P7 ?
mov ax,0b108h) `: B, N$ {/ z: T/ \
mov bx,10h
' W0 j1 R, x3 S2 r mov di,48h% o' m. \2 |# R- Y* c/ |) U
int 1ah$ B/ Y# n4 F1 _. `
mov reg,cl ;get RTC Control Register! U: U7 X* h( G3 O0 [2 d, S
4 S/ r: Q, y/ r mov cl,reg
1 h# @8 b4 F( _) G/ S and cl,3fh$ {! h' K0 H9 Z( u9 b4 @
or cl,40h ;set APCREG_EN" e N' i( H& j* n
mov ax,0b10bh
1 C4 ~. _9 k$ d1 J mov bx,10h& Z. y- b; g" ]! A
mov di,48h
$ n. l A6 n6 g; o int 1ah
. _9 I5 T, N8 A. _& E( s //now can access the APC register
$ S4 j3 }1 T2 I+ D# B5 T) M
9 Y- W# h( F. I mov cl,reg# L( U. Y: ^& h7 W H- w
mov ax,0b10bh
# R, A; x2 b3 o& f% x mov bx,10h
3 s" z. `" p9 ~3 \% }+ A mov di,48h$ d4 S6 c: c! I: {0 y1 n# M( P
int 1ah ;Restore |
|