>>The problem with LCALL is that it doesn't set PCLATH after the return. > >Use this format > > LCALL far_procedure > LSET $ > >That's what LSET is for. > >Andy But then, the assembler will always insert the instruction, I want it just when it is needed. The point is I want to not care about if the routine is in the first or second page. Octavio ====================================================== Octavio Nogueira - e-mail: nogueira@mandic.com.br http://www.geocities.com/~oct_nogueira "ProPic" Production PIC Programmer Windows under US$20 ======================================================