Hi!
I'm calling a subroutine (Load_Buffer).In that subroutine I'm calling another table which is in a different page (0x0500).My problem is do I need to clear the PCLATH after calling the subroutine?
Note that I don't know the exact starting position of the Load_Buffer subroutine.It can be in another page or boundary crossed.
I'm calling a subroutine (Load_Buffer).In that subroutine I'm calling another table which is in a different page (0x0500).My problem is do I need to clear the PCLATH after calling the subroutine?
Note that I don't know the exact starting position of the Load_Buffer subroutine.It can be in another page or boundary crossed.
Code:
call Load_Buffer
Load_Buffer movlw High Table_1
movwf PCLATH
movf Pointer,W
call Table_1
movwf Buffer_97
call Make_Shift ; A long routine
----
----
----
return
org 0x0500
Table_1 addwf PCL,F
retlw 00h
retlw .1
retlw .6
retlw .12
retlw .18
retlw .24
Last edited: