On Fri, Feb 19, 2010 at 8:28 PM, Josh Koffman wrote: > W_Temp =A0 =A0 0x080 Why do not you use the access ram area instead? Just my cents. Tamas > PORTA =A0 =A0 =A0 0xF80 > > The other registers have similar overlapping low byte addresses. > So...going into my ISR I might not be in the correct bank. But if I > change the bank, I've upset the current state and things won't get > restored correctly. > > I'm not really sure what to do on this one. I suppose I could use a > lot of banksel commands (and that's likely what I'm going to try while > waiting to see what everyone else thinks), but is there a better way? > I'm currently using code Microchip put in the data sheet for context > saving, which means it might not be the best. I'd like to keep using > my own registers rather than the fast return stack as I'd like the > capability of moving to two priority interrupts later on. > > Thanks! > > Josh > > -- > A common mistake that people make when trying to design something > completely foolproof is to underestimate the ingenuity of complete > fools. > =A0 =A0 =A0 =A0-Douglas Adams > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- = int main() { char *a,*s,*q; printf(s=3D"int main() { char *a,*s,*q; printf(s=3D%s%s%s, q=3D%s%s%s%s,s,q,q,a=3D%s%s%s%s,q,q,q,a,a,q); }", q=3D"\"",s,q,q,a=3D"\\",q,q,q,a,a,q); } -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist