|
发表于 2008-7-21 13:02:13
|
显示全部楼层
你确认访问的位置是Bus0:Device2:Function0的Reg48h吗?
1 E; d5 m( @6 f4 m请用下面这段代码来试试# T, s6 O6 g; m! H& C: |6 M
reg:BYTE, M+ `% v* L7 q2 @ h" I, @ m; a
mov ax,0b108h- M+ g( l j7 g- X2 _
mov bx,10h
! Q7 u% g0 W3 q7 r! t# p mov di,48h
4 K! j4 g6 t$ O K int 1ah
1 E& n7 ]! O6 f9 u* D% M( N2 O$ \# U mov reg,cl ;get RTC Control Register
9 i' \1 n4 z( r4 s* b5 p, Z5 S & Y8 X. x' r5 O6 Q& [
mov cl,reg
1 [: `9 `) j# k0 S \. R: w and cl,3fh! p1 y# n3 p5 r r8 ]8 C
or cl,40h ;set APCREG_EN4 P/ o4 F" Y0 h* f: Y0 j
mov ax,0b10bh4 o6 ]7 S& ~' u# N/ E3 z
mov bx,10h
& k! b, t4 J6 t6 _, ?. S mov di,48h
' ^+ O4 F" ?' p' t' P( M: ~ int 1ah
+ Q- @; A0 _% s2 R //now can access the APC register ' y: O, w* I1 b, O8 n) v
: U3 B1 s. d! ]: r' ~ mov cl,reg5 a3 M' }$ n- W! N
mov ax,0b10bh6 X$ I: c/ B+ m* M
mov bx,10h
. g: \: c4 W o mov di,48h
' P; Y. ~) {7 _ J int 1ah ;Restore |
|