On Wednesday 24 January 2018,Philipp Klaus Krause <p...@spth.de> wrote:
> Am 24.01.2018 um 08:02 schrieb Åke Rehnman:
> > those instructions is a workaround for a bug in the stm8 causing a
> > DIV/DIVW instruction to return a false result (in the interrupted
> > program).
> > 
> > /Ake

> Sometimes SDCC will be able to prove that the workaround is not needed,
> and omit it. But in the presence of inline assembly or function calls to
> functions not yet defined, it will prefer err on the safe side.
> 
> Philipp

Thank you! The errata does not explain it very well, but your information in 
gen.c about 
clearing CCR bit 6 helps. I am also glad that you got me to find and read the 
errata!

I can easily avoid this with __naked now. No problem.

Thanks,
-Richard

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to