Dear Kashif Ali, Kashif Ali on 2001-05-07 06:21:33 AM > The instruction "jmp pc+w" is correct but the actual problem is "retw" which > have limitation of "256 word block" I am caring of it but still have problem > of undefined return. ... > > jmp pc+w > > retw 00h,01h,02h,03h,04h Have you looked at http://piclist.com/techref/microchip/tables.htm http://piclist.com/techref/microchip/bigtable.htm ? The code there does not have the ``255 word limitation''. Have you checked the assembled code (MPASM generates a ".lst" file) to make sure this really assembles into a long series of retw instructions ? -- David Cary -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads