> But where do your routines save REG0..REG12 to???? The software stack. Sorry, I guess I forgot to come right out and say that. I have macros that manage a configurable software stack in STD.INS.ASPIC at http://www.embedinc.com/pic. The PUSHREGS and POPREGS macros push and pop sets of general registers to/from the stack. Higher level marcros like GLBENT and LEAVEREST incorporate these to perform standard subroutine entry and exit functions. ******************************************************************** Olin Lathrop, embedded systems consultant in Littleton Massachusetts (978) 742-9014, olin@embedinc.com, http://www.embedinc.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body