After building three separate modules and testing them, I decided that instead of putting them together into one large program, I'd take a look at the relocatable features of MPLAB. After a few glitches, everything works fine and I'm using 2 interrupt routines. Took me about 2 hours to figure it all out. Tom -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of peterc Sent: Tuesday, July 20, 1999 8:33 AM To: PICLIST@MITVMA.MIT.EDU Subject: Re: MPLAB and Make/Build Barry Baldwin wrote: > > Hi Peter, > > I'm having the same problem. > > Another thing you may want to look out for is strange interrupt > behavior. If my project was created with linked files and an interrupt > occurred the W register > would be decremented by 1 and the STATUS register would then change > before the ISR had a chance > to save these. This was causing some very interesting results with my > project. When I then put > all of my code into one big file the interrupt behavior went away. If > you are using interrupts I > would be curious if you see the same type of behavior that I'm seeing. > I've got the design linking and compiling We don't appear to be having any problems with W and STATUS saving when entering the ISR though. (It's no help to you but the linking does at least seem to work). -- Peter Crighton