I want to move some data to some free GP registers individually. The data will update when every time in the process routine. Width contains the new data.
For ex: if process is done for 15 times it must contains 15 GP registers with different data.
Can anybody tell is this method is ok.
Thanks
For ex: if process is done for 15 times it must contains 15 GP registers with different data.
Can anybody tell is this method is ok.
Thanks
Code:
movlw 40h
movwf FSR
Process --- ;other work doing here
---
---
---
---
---
---
movwf Width ;contains new data
Update incf FSR,F ;increment the GP location
movf Width,W ;get a copy of Data
movwf INDF ;move to temporary GP registers
goto Process