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.