| delorie.com/archives/browse.cgi | search |
| Message-ID: | <3740A75B.E870ABAE@unb.ca> |
| Date: | Mon, 17 May 1999 19:33:47 -0400 |
| From: | Endlisnis <s257m AT unb DOT ca> |
| X-Mailer: | Mozilla 4.51 [en] (Win95; U) |
| X-Accept-Language: | en |
| MIME-Version: | 1.0 |
| Newsgroups: | comp.os.msdos.djgpp |
| To: | djgpp AT delorie DOT com |
| Subject: | Re: using labels in inline asm |
| References: | <373C449D DOT 634F609B AT magix DOT com DOT sg> <373DA607 DOT DE176590 AT unb DOT ca> <373CF57B DOT 26420302 AT go DOT ro> |
| X-Info: | BrunNet, Inc. 888-278-6638 |
| Reply-To: | djgpp AT delorie DOT com |
Radu Georgescu aka skoola wrote:
> > You can use "local labels". The catch is that local labels need to be
> > numeric labels (only numbers). It might be easier to just change the label
> > names, why do you need to reuse label names?
>
> there is another problem: if the compiler expands this kind of function inline,
> it will complain for redefined label. using numeric labels will solve this kind
> of problem too?
Yes.
asm ("stuff;
1:
stuff;
jmp 1b; //this means 1 back
jmp 1f; //this means 1 forward
stuff;
1:
);
--
(\/) Endlisnis (\/)
s257m AT unb DOT ca
Endlisnis AT HotMail DOT com
ICQ: 32959047
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |