Re: [jallib] IF statement fails

2023-08-18 Thread Rob CJ
Hi Andreas, Vasile, The reason I think it is an optimization issue is because I had a look at the assembly code when the code reduce option is switched off. The original code that went wrong was this (where the Z flag is not affected): ; 14 i=test1() movlw0

Re: [jallib] IF statement fails

2023-08-18 Thread vsurducan
:) good idea, no effect... Forcing the operation order does not change anything? If (i<13) & (i>0) then If not, then only some workaround on the if, separe it in two sentences, that usually works. On Fri 18 Aug 2023, 6:12 PM 'off...@schloegl-software.at' via jallib, < jallib@googlegroups.com> w

Re: [jallib] IF statement fails

2023-08-18 Thread 'off...@schloegl-software.at' via jallib
I remove d "-no-variable-reuse" from the compiler call to see if there is a different: No it is not, but good idea! Best Regards, Andreas On Friday, August 18, 2023 at 1:45:42 PM UTC+2 vsurducan wrote: > Hi Rob, I think it's about disabling reusing variable space and not about > expression red

Re: [jallib] IF statement fails

2023-08-18 Thread vsurducan
Hi Rob, I think it's about disabling reusing variable space and not about expression reduction. On Fri 18 Aug 2023, 9:48 AM Rob CJ, wrote: > Hi Andreas > > Strange, I will do some testing this weekend. > > Thanks for the update. > > Met vriendelijke groet, > Rob Jansen >