You can also define a variable as either near or far, where near = access bank far = banked register It is good practice to use the near modifier for variables that you frequently use, and the far modifier for varibles that you seldom use. Jen > I am using MPLAB C18 compiler to develop PIC18F, could you > give me some > suggestions how I can select different memory bank using C18? > How can I use > "#pragma varlocate"? Do you have some experience in memory > using the C18? -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads