piclist 2008\07\12\154630a >
Thread: Local labels (not in MACRO)?
face picon face BY : email (remove spam text)(Olin Lathrop)

John Coppens wrote:
> 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

Seems rather awkward.  Why not use the feature built into the assembler just
for this purpose.  That works both forwards and backwards.

Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products
(978) 742-9014.  Gold level PIC consultants since 2000.
<006601c8e458$47fd3290$0300a8c0@main> 7bit

See also: www.piclist.com/techref/microchip/devices.htm?key=pic
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Local labels (not in MACRO)?

month overview.

new search...