>> For RES the programmer does not keep track of where in RAM >> the location is, apart from specifying that it be in a named area, >> but the trick here is that the named area is declared outside of >> the RES statement, which is not intuitive to the beginner. >Not only outside of the RES directive, but outside of the >whole (ASM) source code ! Not quite so. Within the source file you need .name udata res variable so that the linker knows what goes into the .name section. On this basis you are within the source code when telling the linker where to put the variable. Sure the actual address is defined outside the source code, in the linker file, but you still need to reference the name for that address. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist