Q: Indirect addressing on an assembly program with RAM locations Here, I have written a indirect addressing assembly program (with PIC18) to
copy following to RAM locations 10H to 16H.
(It says MERHABA in turkish (means hello)
But, I am not sure that the part of my code "LFSR 0,0x10" was right or wrong...
For instance, if I would make it from 12H to 14H to say Hey, then should I supposed to write
"LFSR 0,0x0C" like that?
It doesn't need to say hello or something. I just want to figure out that. If you could help me how to test it on mplab, that would be gorgeous
Thank you...
MOVLW 'M'
LFSR 0,0X10
MOVWF INDF0
INCF FSR0L,F
MOVLW 'E'
MOVWF INDF0
INCF FSR0L,F
MOVLW 'R'
MOVWF INDF0
INCF FSR0L,F
MOVLW 'H'
MOVWF INDF0
INCF FSR0L,F
MOVLW 'A'
MOVWF INDF0
INCF FSR0L,F
MOVLW 'B'
MOVWF INDF0
INCF FSR0L,F
MOVLW 'A'
MOVWF INDF0

