> 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 So in the real code the extra parameters are there? What are you doing in the manipulations above the offending output, is it possible you are referring to one of those parameters as a bigger (more bits) data type and overwriting the value on the stack? > wondering, the two other flags are for register and chip select type > operations. > > Thanks for noticing though. ;) Sorry, I too should have included a smiley, I can see how my comment could have been a little acidic -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.