Some examples of re-loacatable code. http://gputils.sourceforge.net/reloc_howto.html http://www.embedinc.com/pic C:\Program Files\Microchip\MPASM Suite\Template\Object Chapter 6 of Microchip's "MPASM User's Guide with MPLINK and MPLIB". Olin's PIC programming environment may be the best tools to get all the banking and paging right. Regards, Xiaofan -----Original Message----- From: Sean Schouten [mailto:dev.seantech@gmail.com] Sent: Wednesday, September 14, 2005 3:01 PM To: Microcontroller discussion list - Public. Subject: Re: [PIC] 16F684 & Interrupt Problems On 9/14/05, Olin Lathrop wrote: > > Sean Schouten wrote: > > TEMP_W EQU H'0020' ;Place to dump W-Register in case of > interrupt. > > TEMP_STATUS EQU H'0021' ;Place to dump STATUS-Register data in case > of interrupt. > > Bad idea to put variables at hard coded addresses. This will get you into > trouble when moving code from PIC to PIC. There is another way; other than hard-coded memory addressing? You would make me happy by pointing me to an example. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist