>How does the RES directive work when the assembler / >linker sees that you have a variable that you must >access in two banks? Does it register that variable >in both banks or do you still have to pay much >attention to bank switching? You still have to pay attention to which bank you allocate it to, and to bank switching in your code. However much of this can be automated to a reasonable degree. Have a look at the development environment that Olin has at http://www.embedinc.com/pic/ and download it. Study the module files and macros. The macro functionality is easiest studied by getting the PDF file from Jan-Eriks page, that Olin links to. I am not sure if this file is up to Olins latest release, but much of it is still relevant if not. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist