On Sat, 12 Jul 2008 15:14:50 +0100 Electron wrote: > > How do I define local labels then? In most assemblers one uses ".", but > in MPLAB? > If you insist on having local labels, there is a trick to do it: 0000 3012 00002 route1 movlw 12 00000001 00003 rlocal set $ 0001 3E01 00004 addlw 1 0002 2801 00005 goto rlocal 0003 0008 00006 return 00007 0004 3023 00008 route2 movlw 23 00000005 00009 rlocal set $ 0005 3E02 00010 addlw 2 0006 2805 00011 goto rlocal 0007 0008 00012 return Note that this only works with backward references (the goto must point back) John -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist