John Chung wrote: > You should use a macro first to determine the location > of the subroutine before calling the subroutine. In > the macro it should set the required page settings. That doesn't work since the locations of segments is decided by the linker and therefore not known at assembly time. ****************************************************************** Embed Inc, Littleton Massachusetts, (978) 742-9014. #1 PIC consultant in 2004 program year. http://www.embedinc.com/products -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist