>Are there any good tutorials on writing relocatable code around? I >had a look on www.piclist.com, but didn't find any. Just get the application example from Olin's website, and go for it. There really is minimal difference between coding for relocatable code, and coding for absolute addresses. The major difference is using the "res" statement for ram addresses. The other nice thing about Olin's development environment is that he has a number of nice macros to take care of the bank and page switching requirements for the PIC. These greatly simplify getting rid of this as a hassle, but don't stop you making silly mistakes :)) -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads