Re: [Sdcc-user] Odd code in STM8S ISR

2018-01-24 Thread Richard Hodges
On Wednesday 24 January 2018,Philipp Klaus Krause 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

Re: [Sdcc-user] Odd code in STM8S ISR

2018-01-24 Thread Philipp Klaus Krause
Am 24.01.2018 um 08:02 schrieb Åke Rehnman: > Hello, > > 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.

Re: [Sdcc-user] Odd code in STM8S ISR

2018-01-23 Thread Åke Rehnman
Hello, 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 On 2018-01-24 01:58, Richard Hodges wrote: Hello again! There is something odd in the emitted assembly code for my ISR. Note that the