just some feedback for you jan-erik .. looks like RETFIE out of alignment was the problem :) thanks a bunch; i've been chasing this damn problem for a couple days now ! dld On Fri, 26 Sep 2003 23:38:24 +0200, Jan-Erik Soderholm XA (TN/PAC) wrote: >David Dunn wrote : > >> goto / define are picbasic. > >And we should had guessed that ? :-) > >> asm / endasm lets you do inline assembly with picbasic. > >OK. > >> i'm not sure what you mean by "starting in position 1" with >> respect to the retfie instruction. > >MPASM doesn't "like" instructions in pos 1. I don't know >about picbasic. > >> i've been told that the compiler automatically saves >> w/status/pclath on pics over 2k, and inspection of the >> resulting assembler code confirms this so i only need to restore them. > >Since I don't know picbasic, I hadn't answered in the first place >if I'd known that you used that. > >(Now, just getting your second reply to my post, it might have had >some value after all :-) ) > >Good luck ! > >Jan-Erik. > >-- >http://www.piclist.com hint: The PICList is archived three different >ways. See http://www.piclist.com/#archives for details. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.