From: Martynas Kunigelis Newsgroups: comp.os.msdos.djgpp Subject: Re: inline assembly - jumps Date: Tue, 17 Dec 1996 11:38:03 +0000 Organization: LITNET Lines: 19 Message-ID: References: <19961213 DOT 064349 DOT 4351 DOT 1 DOT aclemmer AT juno DOT com> <19961217 DOT 033933 DOT 8319 DOT 0 DOT aclemmer AT juno DOT com> NNTP-Posting-Host: santaka.sc-uni.ktu.lt Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <19961217.033933.8319.0.aclemmer@juno.com> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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