;;; example use of indirect memory write ; ; by Terry Sturtevant ; November 10, 2017 ; ; initialize SFR register 0 lfsr 0, NUM1 ;get file register address in FSR0 movlw 5 ;get value in WREG movwf INDF0 ;put in NUM1 ; movwf POSTINC0 ;put in NUM1 and increment counter ; movwf POSTDEC0 ;put in NUM1 and decrement counter ; increment and decrement handle entire 12 bit address properly - don't need to worry about BSR