Hi I want to call a TABLE by using indirect addressing. Now I’m doing like this.
So if there is more registers I want to write more.
I can clear the GP registers using indirect addressing like below.
But how I call a TABLE to move all literal values to appropriate registers? (My literal values are in the table)
Thanks a lot
Code:
movlw 01h
movwf 11h ;GP register
movlw 02h
movwf 12h ;GP register
So if there is more registers I want to write more.
I can clear the GP registers using indirect addressing like below.
Code:
movlw 11h
movwf FSR
clrf INDF
incf FSR,f
btfss FSR,7
goto $-3
goto NEXT
But how I call a TABLE to move all literal values to appropriate registers? (My literal values are in the table)
Thanks a lot
Last edited: