|
发表于 2008-7-21 13:02:13
|
显示全部楼层
你确认访问的位置是Bus0:Device2:Function0的Reg48h吗?' O0 U+ }6 X2 D# K
请用下面这段代码来试试0 k; M* h) J4 \' w" ?) L9 T
reg:BYTE% t3 U5 T( B0 e
mov ax,0b108h
% w8 x- L% w7 q6 E mov bx,10h
! c) @& \) ^ C& q mov di,48h
5 Z8 ]- l K6 s1 |; ` int 1ah
6 n! s+ _" q( d# R3 F5 P mov reg,cl ;get RTC Control Register
! s+ H7 T+ w- q& M! h& [) d
$ I8 _2 V7 f m/ J0 P mov cl,reg
+ J6 T. t- A) ~) J and cl,3fh
& r" J: s- j7 q3 N* L or cl,40h ;set APCREG_EN
9 ]% h3 }5 x4 q mov ax,0b10bh
6 {8 o) G% {2 ]. ^# @1 Z: k mov bx,10h5 ^+ E: M B& C% L$ A! I/ O' d! x4 L
mov di,48h& Q+ S$ n0 X* K) G/ a
int 1ah3 U9 Y$ i7 O! J- v" I( ~ B, G) x
//now can access the APC register
$ ]( x* i {6 q% I - E) Z( F- r0 r1 V3 r# O# _
mov cl,reg
8 ?2 d! `; ~; f3 R1 W( e mov ax,0b10bh
6 o8 k/ ]! l( z X9 e. }8 W& }8 P mov bx,10h3 Y6 Y% R: x& N' M0 h
mov di,48h) }, F" `2 t0 ~
int 1ah ;Restore |
|