Thanks for all the replies. Though I somewhat understood what you have said above.
I just to finally confirm what you have advised still applies as the following is the whole context saving code for PIC 16F676:
Code:
define INTHAND _ISR
' The main program starts here
goto main
ISR:
asm
movwf wsave ; Save WREG
swapf STATUS, W
clrf STATUS ; Point to bank 0
movwf ssave ; Save STATUS
movf FSR,w
movwf fsave ; save FSR
movf PCLATH, W ; Save PCLATH
movwf psave
; No problems in understanding up to here
; get ready to jump within the ISR page
movlw ((INTHAND) >> 8) ; Set PCLATH for jump
movwf PCLATH
There is no PCL related statement in the context saving. Correct me if I am wrong, does INTHAND has address 4 stored in it?
Bookmarks