Well blow me down with a feather:- there's a command called movfw, and I'm using instead of movwf! That would certainly explain what's wrong! Thanks, Maarten! Hmm, I feel pretty silly now. Thanks again, Michael Maarten Hofman wrote: > Rochester, 23 augustus 2005. > > Dear Michael, > > Could it have something to do with you not restoring the STATUS byte correctly? > > Your code reads: > > movfw STATUS > > Which seems to be incorrect, in my opinion. One of the reasons why I > tend to avoid the movfw instruction alltogether. > > Greetings, > Maarten Hofman. > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist