delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/02/07:33:04

From: 0513793479-0001 AT t-online DOT de (Juergen Gloeckner)
Newsgroups: gnu.gcc,gnu.gcc.help,comp.os.msdos.djgpp
Subject: Lables in an assembler statement inside an inline function
Date: 1 Apr 1998 19:26:42 GMT
Organization: T-Online
Lines: 20
Message-ID: <6fu4di$sb9$1@news02.btx.dtag.de>
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I've written (in 68000 asm) something like

extern inline int foo()
{
  asm("\
...
lab:\
...
  dbne %d0,lab");
}

but when I use the function more than once in a module, the lable is
also used more than once.
It's also impossible to use something like

dbne %d0,%pc@(-6)

What can I do?

  Daniel Gloeckner

- Raw text -


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