Mark Newland wrote: > > Yeah, I think you _can_ use movf STATUS,W because the value it moves to W is > > the value BEFORE the Z bit gets tweaked. > > What I saw was the following: > > STATUS = 1A, W = xx > bsf STATUS,Z ;Set zero bit > STATUS = 1E, W = xx > movf STATUS,W ;Move STATUS into W register > STATUS = 1A, W = 1E Isn't that just what Bob mentioned?? The original STATUS value is preserved in W and thus can be restored later on. -- Best regards Tony mICros http://www.bubblesoftonline.com mailto:sales@bubblesoftonline.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu