|
发表于 2008-7-21 13:02:13
|
显示全部楼层
你确认访问的位置是Bus0:Device2:Function0的Reg48h吗?( \) g% L0 Y' ?
请用下面这段代码来试试4 r% e9 u! B [9 y1 a! c
reg:BYTE
7 [3 r8 {# S5 d- X mov ax,0b108h/ w* k* k1 ^( S( ?
mov bx,10h
& c( `. f0 R3 ?- {' c$ w mov di,48h, B; f4 v" r# k, Z6 y5 ?
int 1ah( N5 w) H, J4 _7 p T3 Z w7 K7 @
mov reg,cl ;get RTC Control Register, ~/ ^5 ]. H7 r; Y- ]+ P/ U
- ?- O6 d% E! L# [8 m mov cl,reg
5 Y% i) E* t9 Z and cl,3fh
2 i' U) [, }! z5 p+ l( \7 ~9 l or cl,40h ;set APCREG_EN6 v# P: z8 g! n- C3 O ~
mov ax,0b10bh
; l# [8 Z% W8 ^8 k6 W1 d mov bx,10h
8 Z8 l/ _" {' ?' z mov di,48h
9 c9 M) Z( K& j* d& V6 m( X int 1ah
8 W( p2 j4 s7 V6 h1 U5 P# J //now can access the APC register % n, W+ _9 R/ `5 @( b; `. X
9 |5 H) V. G( E U+ G6 a mov cl,reg
" h& D' C- b) Q, J mov ax,0b10bh
8 @3 A) g2 [2 c. N. [& {6 u7 T- P; } mov bx,10h* W+ @3 r( j3 A) t( i( a7 l
mov di,48h$ E1 B$ v+ S3 h9 Y
int 1ah ;Restore |
|