Thanks to Dwayne, Dave, and Olin for their comments on this. Since it does work and based on my understanding of how STATUS is affected by the MOVF instruction (confirmed by what Dwayne said) it should work fine, and also because I want to move on to other things, I'm going to leave it as is. Sean At 03:52 PM 1/12/2003 -0700, you wrote: >At 04:31 PM 1/12/03 +1000, David Duffy wrote: >>Hi Sean, >>I took a really quick peek at the code and noticed that your ISR >>save and restore possibly has a bug in it. When you get the >>status register, you are affecting the zero flag just by reading it >>whereas a swap doesn't. > >Reading STATUS into W happens on Q1 or Q2 (I don't recall which) and STATUS >changes as a result of the read on Q3 or Q4 (also don't recall which). The >bottom line is that the copy of STATUS sitting in W is just fine. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads