On 05/28/04 at 14:16 Anthony wrote: > I don't know much about this implementation of C, but... > [this is] is considered very bad form! > > It might be that the stack is getting upset over the fact there are > three > parameters expected to the function yet you only supply one Yeah, so in my attempt to simplify the code, I forgot the two extra parameters on the function call. Thats just my error. In case you're wondering, the two other flags are for register and chip select type operations. Thanks for noticing though. ;) Also, thanks to Bill for this one: On 05/28/04 at 14:29 Bill wrote: > That's correct, there is a library bug in PICC Lite > concerning packed strings on the 16F877(A). I found it > last year, and finally got Hi-Tech to acknowledge it around > March of this year. It will be fixed at some point in the > future (the next release of PICC-LITE). I suspected as much. I couldn't find anything on the list because I get the "black skulls of smoke" on the archive search. ;) I'll avoid string packing for now. The really odd thing is that it is inconsistently bad. If I comment out my first debug statement, things work fine, but if I leave it in, string packing goes all wobbly. Shrug, -NO_STRING_PACK for me. I won't have any debug messages in my final code anyway. ;) At least I know I'm not crazy. ;) Thanks all, Jake -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.