Electron wrote: > I've a strong background in assembly but not on the dsPIC via MPLAB. > What I would like to know is how to make/use local labels. Example: > > Routine1: > RCALL Hello1 > .loop: RCALL BlaBla1 > BTSS PORTF,#6 > BRA .loop > RETURN > > Routine2: > RCALL Hello2 > .loop: RCALL BlaBla2 > BTSC PORTG,#6 > BRA .loop > RETURN > > the assembler gives me an error at the definition of the 2nd ".loop" > label, while each .loop should be local to its own main label > (Routine1 and Routine2)! No, it shouldn't. There is absolutely nothing in the ASM30 documentation that would even remotely suggest these two symbols would have any special scope. You might was well wave a dead fish over your code and wish really hard. That works about as well as guessing syntax without reading the manual. > How do I define local labels then? In most assemblers one uses ".", > but in MPLAB? Use the digits 0-9, then refer to them with a B and F following them. See the manual for details. > after one long hour Googling didn't help Not surprising. The obvious place to look up ASM30 syntax is the ASM30 manual. It took me well under a minute to find Section 5.5 "Local Symbols". ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist