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