Using "return" from a sub routine, will a value put into the "w" register by the subroutine be available to the main program? Goran -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist