up: microprocessors - microchip 16F84A - data memory  
Microchip 16F84A
Indirect Addressing
What links here?
The INDF register is used to read and write the register pointed to by the FSR register.

Clearing a range of RAM using indirect addressing

This example clears 0x20 to 0x2F using indirect addressing.

        movlw   0x20        ;initialize pointer
        movwf   FSR         ;to RAM
NEXT    clrf    INDF        ;clear INDF register
        incf    FSR         ;inc pointer
        btfss   FSR,4       ;all done?
        goto    NEXT        ;NO, clear next
CONTINUE
        :                   ;YES, continue
microprocessors - microchip 16F84A - indirect addressing
microprocessors - microchip 16F84A - memory DELETE ME
programming:microchip pics:pic examples
programming:windows:WM_SETTEXT
science - flame temperature
file formats - PDF
MC6802 - addressing modes
embedded systems - bacnet - Bacnet Confirmed Request PDU
file formats - PDF - Body
MC6802 - instruction set - clear memory
Christianity - Dictionary
filename:microprocessors - microchip 16F84A - indirect addressing
filename:microprocessors%20%2D%20microchip%2016F84A%20%2D%20indirect%20addressing
last edit:June 02 2011 21:32:22 (5483 days ago)
ct = 1780878670.000000 = June 07 2026 20:31:10
ft = 1307064742.000000 = June 02 2011 21:32:22
dt = 473813928.000000