偏移中断向量
;***********************************************************************
ORG 0x0000 ; Re-map Reset vector
VReset
bcf STATUS,RP0 ; B0/B2
bsf STATUS,RP1 ; B2
clrf PCLATH ; B2
goto Setup ; B2
ORG 0x0004
VInt
movwf W_TEMP ; ?
swapf STATUS,W ; ?
movwf STATUS_TEMP ; ?
clrf STATUS ; B0
movf PCLATH,W ; B0
movwf PCLATH_TEMP ; B0
clrf PCLATH ; B0
goto RVInt ; Re-map Interrupt vector ; B0
;***********************************************************************
; ***********************************************************************
ORG 0x800
RVReset
ORG 0x804
RVInt
; ***********************************************************************
|