> -----Original Message----- > From: myke predko [SMTP:myke@PASSPORT.CA] > Sent: Tuesday, August 27, 2002 4:08 AM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC]: HT-PICC error message:-( > > Hi Salah, > > Do you know what statement was causing this problem? > > What the error message seems to be saying is that when it was putting the > application hex code together, it was given the task of trying to store a > value that was larger than its destination. This is where the Byte value > greater than 255 example came from. > > Do you have any constant expressions like: > > ByteVariable = 200 + 100; > > In this case, the result, 300 will be loaded into "ByteVariable", but it > can > only store 255 or less. > > myke > This would have given an "arithmetic overflow in constant expression" warning, not an error. Fixup overflow errors usualy occur when you are using pointers, and try to access a variable in the wrong bank for the specified pointer e.g.: bank1 char b1var; bank2 char b2var; bank1 char *b1pntr; b1pntr = &b1var; // ok b1pntr = &b2var; // fixup overflow. Regards Mike -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.