I want to put the five patterns in the Table to the GP 11h,12h,13h,14h,15h registers using indirect addressing.
Here is my Table & the indirect addressing coding. But it doesn’t work at all.
What’s wrong with it?
Here is my Table & the indirect addressing coding. But it doesn’t work at all.
What’s wrong with it?
Code:
Table addwf PCL,f
retlw b'00000001'
retlw b'00000010'
retlw b'00000100'
retlw b'00001000'
retlw b'00010000'
Code:
movlw 11h ;start from 11h
movwf FSR
PUT call Table
movwf INDF
incf FSR,F
movf FSR,w
xorlw 16h ;check whether it has reached GP 16h
btfss STATUS,Z
goto PUT
goto EXIT