At 08:11 PM 6/11/02 -0500, Pic Dude wrote: >So I commented out the new code (subroutine) and it works again, BUT >if I comment out the code that calls the new subroutine (but leave the >subroutine in place), it still does NOT work. I've narrowed it down to the >existence of the code that causes a problem. I've even changed the new >subroutine to 26 nop's (instead of the 26 instructions that were there) with >absolutely no calls to it, and it still fails. I *really* would take a look at any and all jump tables. You have described a classic page boundary problem (the nop's tell me that). Do a search for PCL in your source and see if you have missed a computed goto or jump somewhere. dwayne -- Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax Celebrating 18 years of Engineering Innovation (1984 - 2002) .-. .-. .-. .-. .-. .-. .-. .-. .-. .- `-' `-' `-' `-' `-' `-' `-' `-' `-' Do NOT send unsolicited commercial email to this email address. This message neither grants consent to receive unsolicited commercial email nor is intended to solicit commercial email. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads