|
|
发表于 2008-7-21 13:02:13
|
显示全部楼层
你确认访问的位置是Bus0:Device2:Function0的Reg48h吗?
" A; Q3 F9 l: y L# B请用下面这段代码来试试
# @) U- @% o9 Y0 Q7 j+ w% D: z% ?9 D. b2 c reg:BYTE
" }9 @/ o& ~& F mov ax,0b108h* }# Z3 H: V" E6 [% {
mov bx,10h5 L0 L J- `8 k
mov di,48h9 n) u% a" [7 U" i% H
int 1ah
% C6 h2 K: v# s4 c; } mov reg,cl ;get RTC Control Register
2 i1 J0 ?' s4 z$ ^1 w * W0 o/ L, }2 ?: u- g1 u C
mov cl,reg
" |& X ~; q+ |9 c+ y( m0 G0 b7 y and cl,3fh
$ R2 B5 J2 ~' N or cl,40h ;set APCREG_EN
8 v3 D7 e/ M3 |' B- { mov ax,0b10bh
5 f4 Z; @8 H" p# H4 t0 F mov bx,10h% d8 y- ~9 V* }( V5 ~
mov di,48h
9 O" a! u* L) U/ A2 d int 1ah9 d! A5 A, i& Y" K
//now can access the APC register 4 D: z, D4 e. A( l6 w3 y; T: l4 k
|1 ]% D; O4 z* p( h$ D
mov cl,reg
" Y/ `5 v7 ?: u( J4 N6 \7 Z& Y mov ax,0b10bh# b2 p5 s. |" d g) g
mov bx,10h; k0 g7 Q; l1 v+ D4 A/ `
mov di,48h
" V J3 I% z; }* Q9 n8 Q int 1ah ;Restore |
|