www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/25/12:57:49

Xref: news2.mv.net comp.os.msdos.djgpp:7866
Newsgroups: comp.os.msdos.djgpp
Subject: What does this mean?
Message-ID: <321D67E8.7C09@cc.usu.edu>
From: "Mitchell A. Whiteley" <slyjv AT cc DOT usu DOT edu>
Date: Fri, 23 Aug 1996 02:12:24 -0600
Nntp-Posting-Host: asy51.xy1.usu.edu
MIME-Version: 1.0
Lines: 30
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I am compiling inline assembly with DJGPP of the format:

__asm__ __volatile__(
"asm code"
: // output variables
: // input variables
: // slaughtered registers and/or memory
);

I have four procedures using this same format.  But one gives me an
error message that I can't figure out.

1    __asm__ __volatile__(
2    "asm code"
3    : 			    // no output variables
4    : "r" (SBPort)              // input variables
5    : "%eax", "%ecx", "%edx" ); // slaughtered registers and/or memory

Line 5 produces an error that reads:
      invalid 'asm' : operand number missing after %-letter

I'm lost.  What does this mean?????? I have done it four other times
without error messages.  This procedure is the second of the four that
have the same format.  I triple-checked the syntax of everything around
it!!

Please respond.  Thank you!
-- 
Mitchell A. Whiteley
slyjv AT cc DOT usu DOT edu

- Raw text -


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