|
|
发表于 2008-7-21 13:02:13
|
显示全部楼层
你确认访问的位置是Bus0:Device2:Function0的Reg48h吗?8 q7 E! z% h; Z8 q
请用下面这段代码来试试. @' Y. v2 m6 q! C
reg:BYTE9 D+ I$ B8 C6 b5 w0 P" o2 c, F; M
mov ax,0b108h {) f* q {6 ]; G- l( y/ n
mov bx,10h
1 y( R; H, j& j) y mov di,48h
# E, {6 v- [$ H int 1ah
5 ^; s" v3 V( q( Z# H mov reg,cl ;get RTC Control Register
5 {# w, f5 v$ X4 e' o+ m/ D3 ` - W7 u7 h: u/ b
mov cl,reg7 j7 t, s; t4 ^5 d# e
and cl,3fh
P w8 Q) O3 A0 i: B or cl,40h ;set APCREG_EN, ~; E+ l6 r9 S" r9 {0 T
mov ax,0b10bh
7 O8 s7 G/ i i mov bx,10h
/ k5 n5 ~: v0 N6 e( q, ?) B) u mov di,48h
) w6 |# J4 a! O7 |+ R int 1ah6 p" h" t7 r! n( @! p; V
//now can access the APC register & b' d; ?1 s- x7 X5 _% n
3 S" a) J A8 B2 C7 y* @5 R mov cl,reg
; G# G* o. S* ]! D5 q mov ax,0b10bh
- @" y, k W! f mov bx,10h! P1 t% x& U3 j+ x% D C6 Q' b8 z
mov di,48h
- w P6 A" f) y5 r( { int 1ah ;Restore |
|