Page 1 of 1

SImulator:ADDFSR cause overlap error

Posted: 26 Aug 2021 17:27
by tsenyigming
ADDFSR instruction won't affect carry bit. The software simulator use ADDFSR combine with MOVF INDFx, sometimes cause to overlap error. Below example,the function--unsigned long make_SER_data(), returning wrong data due to overlap.
ADDFSR cause overlap error.png
ADDFSR cause overlap error.png (1.49 MiB) Viewed 1375 times

Re: SImulator:ADDFSR cause overlap error

Posted: 30 Aug 2021 12:47
by filip
Hi,

Can you please attach the minimal example that demonstrates this issue ?

Regards,
Filip.

Re: SImulator:ADDFSR cause overlap error

Posted: 01 Sep 2021 02:48
by tsenyigming
See help desk my conversion. thanks.