I have 24 bytes & I need to shift bytes from D1 to D24, but the "New Data Byte" must feed into the 1st byte D1.
Below code I have, Can it be compact more than this?
Below code I have, Can it be compact more than this?
Code:
movlw .24
movwf Temp
movlw D1 ;D1,D2,....D24
movwf FSR
movf New_Data,W
movwf INDF
;
S_Right
xorwf INDF,W
xorwf INDF,F
xorwf INDF,W
incf FSR,F
decfsz Temp,F
goto S_Right
return