Jan-Erik, I thought the compiler saved the context info automatically. Yes, I=20 am using XC8. So I have a complete program that is ready to test. I'll=20 probably do that tomorrow. The code as I have it compiles with no errors=20 and I believe that my logic is correct. I should be able to look at=20 these signals with my scope and I can hook it up to my counters and=20 display chips. This is looking good. Thanks everyone for all of your=20 help. It is greatly appreciated. rich! On 7/21/2014 4:48 AM, Jan-Erik Soderholm wrote: > You have to check your compiler docs. > > I'm sure XC8 does. > > The MicroC docs (I might not have the latest, if you are > using MikroC, verify this) says that W, STATUS, FSR, PCLATH > are saved by the compiler. > > My MicrkC docs doesn't say anything about the newer PIC16's, > but that wasn't of any interest to you anyway, right? :-) > > Jan-Erik. > > > > --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .