Software: Indirect Addressing
Load indirect address into FSR
Reading/Writing to INDF acts on address stored in FSR
Example code to clear 0x20 - 7F:
movlw 0x20
movwf FSR
loop clrf INDF
incf FSR,F
btfss FSR,7
goto loop
-
INDF
-
00h
-
04h
-
7Fh
-
Register File
-
FSR
Previous slide | Next slide | Back to first slide | View graphic version |