|
|
发表于 2008-7-21 13:02:13
|
显示全部楼层
你确认访问的位置是Bus0:Device2:Function0的Reg48h吗?/ @/ O' ?7 O6 i' p- ^
请用下面这段代码来试试
2 O5 x- T( m1 Q: f% A reg:BYTE+ o: U0 Z( q" ~' B |, f g
mov ax,0b108h
; ? n* `+ W0 k# W4 D9 w" d+ T mov bx,10h
+ h- w* d9 S* q6 g) H3 J5 [# v; n: Z mov di,48h1 W' W- P: e# k" C! d
int 1ah
3 \0 U5 p* Q0 s# Y8 O$ n, ] mov reg,cl ;get RTC Control Register
& n9 o' {4 r) U$ H; j5 O
" K& P5 T5 ^$ d mov cl,reg9 S. x" n$ W2 C7 n
and cl,3fh
) O! d# H' M' R: B$ z$ Z1 K8 _5 [ or cl,40h ;set APCREG_EN
% {) w8 t# y* p; @ mov ax,0b10bh
5 g/ _' i+ l) r0 x mov bx,10h
& o8 p- `! O; n( S# K# m1 u1 O mov di,48h6 U+ W/ f. j, {2 h8 }4 S
int 1ah
# I) F7 w# L8 Y7 I0 H8 ]6 f //now can access the APC register 1 a! p2 G& {/ H* O
7 J" p+ N- i5 x6 Z' v( |1 o mov cl,reg q E y: D9 i" K7 ^
mov ax,0b10bh
r. T, [* O4 F# x7 B5 y; J mov bx,10h
! }! r$ J+ A1 k4 w( W; Z7 }) N! n- o mov di,48h
/ r1 U8 H: e6 X int 1ah ;Restore |
|