Re: [Sdcc-user] BUG: Comparisons not working on a 16f877 PIC

2009-03-25 Thread Néstor
Last news, I have debugged the application, and the problem is not with the comparison. I'm sending another email to clarify this and ask for help in a different thread. Thank you. On Tue, Mar 24, 2009 at 3:32 PM, Néstor wrote: > Dear Raphael, > > On Tue, Mar 24, 2009 at 1:40 PM, Raphael Neider

Re: [Sdcc-user] BUG: Comparisons not working on a 16f877 PIC

2009-03-24 Thread Néstor
Dear Raphael, On Tue, Mar 24, 2009 at 1:40 PM, Raphael Neider wrote: > Dear Néstor, > >>   // This reads memory until it gets to the correct language. >>   for (i=0; i>language; i++) >>   { >>     while (text[0] != 0) >>     { >>       text[0] = SerialReadPostIncr(); >>     } >>   } > > Did you m

Re: [Sdcc-user] BUG: Comparisons not working on a 16f877 PIC

2009-03-24 Thread Raphael Neider
Dear Néstor, > // This reads memory until it gets to the correct language. > for (i=0; i>language; i++) > { > while (text[0] != 0) > { > text[0] = SerialReadPostIncr(); > } > } Did you mean `for (i=0; i < language; i++)' with i LESS THAN language here?!? I did not even

[Sdcc-user] BUG: Comparisons not working on a 16f877 PIC

2009-03-24 Thread Néstor
I have found an error when comparing two variables. No matter of the values, it always gives FALSE. In this app an error happens in line 110 when comparing two variables. It's been compiled for a 16F877 PIC with SDCC version (compiled from repository): SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14