> I did some sim-debugging and had to find out, that RETLW is not restoring PCLATH correctly after returning from the computed goto. > A normal RETURN does :-( > > You are wrong. The datalist is not so clear but the PCLATH is NEVER restored by a return. If you want to call a subroutine in another page: PAGESEL MySub ;PAGESEL is an internal MPASM macro that load the correct value call MySub PAGESEL CurrentPage ;the choice of CurrentPage is important! -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist