SImulator:ADDFSR cause overlap error

Fully featured PIC compilers available on Windows, Linux, and macOS.
Post Reply
Author
Message
tsenyigming
Posts: 64
Joined: 15 Feb 2009 08:38

SImulator:ADDFSR cause overlap error

#1 Post by tsenyigming » 26 Aug 2021 17:27

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 1340 times

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: SImulator:ADDFSR cause overlap error

#2 Post by filip » 30 Aug 2021 12:47

Hi,

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

Regards,
Filip.

tsenyigming
Posts: 64
Joined: 15 Feb 2009 08:38

Re: SImulator:ADDFSR cause overlap error

#3 Post by tsenyigming » 01 Sep 2021 02:48

See help desk my conversion. thanks.

Post Reply

Return to “PIC AI compilers”