> >There are several ways to achieve this. First, you can simply fix the > >addresses right in the source code: > > > >wsave equ h'6F' ;addres of interrupt W save alias in bank 0 > > > >.wsav0 code wsave ;bank 0 > > res 1 > >.wsav1 code wsave + h'80';bank 1 > > res 1 > >.wsav2 code wsave + h'100' ;bank 2 > > res 1 > >.wsav3 code wsave + h'180' ;bank 3 > > res 1 > > I like this method. But what's with the little '.' at the beginning of the > subsequent wsavs? The .WSAVn symbols are linker section names. Microchip used the convention that section names start with ".", and I just followed it. This is actually a fairly common convention for linker section names. The exact linker section names don't matter as long as they are unique. They only appear in this one place (and in the map file, of course). ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics