|
|
发表于 2008-7-21 13:02:13
|
显示全部楼层
你确认访问的位置是Bus0:Device2:Function0的Reg48h吗?4 n% V+ J! @0 U+ m
请用下面这段代码来试试
! T' e8 z/ S: N! }$ ]8 w0 U reg:BYTE0 o* U* P* F( _" i" [
mov ax,0b108h
6 ^, O u' a4 Z mov bx,10h
7 y$ X6 B8 ?0 p& R7 R mov di,48h, D; {/ }2 e. G8 s( q! k- |
int 1ah f# O1 }* Z: i+ i, z# O6 B! K% `
mov reg,cl ;get RTC Control Register$ I0 B& U; ^* d. D- g: ~' G
' W' D' w5 ?* b' @% u; n& k
mov cl,reg- \7 i2 h+ V' O1 u, k
and cl,3fh+ g0 t: T6 A1 Z T \
or cl,40h ;set APCREG_EN3 |" [1 ]. x5 I& }% V! |' \% k
mov ax,0b10bh
8 ?( v t, k) I% i, l' c mov bx,10h
) `/ |, k; n- Z8 m mov di,48h
) k) R7 x2 d1 s% j# N) O# I int 1ah- A: l' ]7 \+ c4 p
//now can access the APC register ! @7 h/ k9 K0 J
* s. f# y+ h/ v( }% d6 N mov cl,reg
1 X2 V% B0 j5 r! o4 r mov ax,0b10bh6 a% q0 ~. V( P f$ b- g P5 _
mov bx,10h Q/ f. C" Z3 J( X
mov di,48h
3 f$ {( ~; a. T6 \$ C+ ]9 h8 J int 1ah ;Restore |
|