Mail Archives: djgpp/1996/12/17/06:48:00
On Mon, 16 Dec 1996, Aaron m Clemmer wrote:
> I've been listening to the replies I got, and this is what to
> do... When the asm code is being pasted in multiple times as a macro, the
> label is defined more than once. What you need to do is specifiy either
> 'b' (for back) or 'f' (for forward) directly after the label on the jump
> ( 0: ... jge 0b). At first, I tried this with alpha-numeric labels, but
> that doesn't work. You need to use numeric labels when doing this.
>
Yes, this is what gas calls 'local labels'. It's not just those 'f' or
'b', it's a little different concept: you can have as many '0:' or '1:' or
whatever labels as you want, you just have to specify to which one closest
you want to jump: forward or backward.
Martynas
- Raw text -