|
发表于 2008-7-21 13:02:13
|
显示全部楼层
你确认访问的位置是Bus0:Device2:Function0的Reg48h吗?$ S5 z7 }) y- @5 Z: m, T9 ?
请用下面这段代码来试试
7 l6 Y; ~4 V% l reg:BYTE
: o1 F7 Y6 z6 p) c9 h- g5 @, h mov ax,0b108h
# p, i% ]2 x4 Z8 _1 p9 D" P mov bx,10h
7 X" s$ k1 ~( u, ?5 Q1 W mov di,48h9 d' ~ o6 X5 X8 o
int 1ah4 p; R" A* n! C0 {( o1 x: ?
mov reg,cl ;get RTC Control Register
5 Z6 n( t6 W& A6 u1 X j
& S% ~/ v& H) K/ X1 y9 b mov cl,reg
+ @! e# t1 Z5 _! Z% [ and cl,3fh8 p3 |; i0 N$ Y% b! s5 D5 I
or cl,40h ;set APCREG_EN& p4 |0 [. s6 O' k; r" r" D- X
mov ax,0b10bh; ? I) q0 R% G G* D5 E8 c
mov bx,10h) u- y- A6 _( F9 m: }3 Q
mov di,48h
6 v* ], q1 V% h, V) l int 1ah
3 i4 n, P9 U- V! C& W# {0 c% e //now can access the APC register
" m9 g( Z/ Y5 C# ^5 t " v& [8 s: N+ y
mov cl,reg" s/ B* ~. `4 q: ~) G( {' k" t" @
mov ax,0b10bh& _4 k: `: e. {* b
mov bx,10h# C7 o. D" h* k) F- K! [9 @
mov di,48h
$ j3 N, ]& [. b9 e2 y int 1ah ;Restore |
|