www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/17/06:48:00

From: Martynas Kunigelis <algikun AT santaka DOT sc-uni DOT ktu DOT lt>
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: <Pine.HPP.3.95.961217113546.28962F-100000@santaka.sc-uni.ktu.lt>
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
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019