A 4th FSR would be nice: 1 for source 2 for dest 3 for stack 4 for interrupt code Bob Ammerman RAm Systems ----- Original Message ----- From: "Olin Lathrop" To: Sent: Tuesday, August 19, 2003 2:49 PM Subject: Re: [PIC:] Lookup table modifies PCLATH: How to restore it? > Scott Dattalo wrote: > > I don't use a stack pointer :). But I suppose if I did then 3 sets would > > really be inadequate. > > I do use a stack and reserve an FSR exclusively as the stack pointer. So > far 3 FSRs has worked out just fine for me. One for the stack, one for > use by the interrupt routine (so that it doesn't have to save/restore an > FSR on interrupt), and one for the foreground code. > > > I have to agree, a dedicated extra data stack pointer would be handy. > > But they gave you one. And an extra FSR on top of that. And, you can > even use the stack pointer as a regular FSR if you don't want a stack > pointer. Sounds like a good deal to me. > > > ***************************************************************** > Embed Inc, embedded system specialists in Littleton Massachusetts > (978) 742-9014, http://www.embedinc.com > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu > -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu