linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Martin Fflores" <abebex17@hotmail.com>
To: linux-assembly@vger.kernel.org
Subject: inb
Date: Sat, 11 Jun 2005 14:18:25 +0000	[thread overview]
Message-ID: <BAY14-F280DE79C5B1BF611CB993BD0FE0@phx.gbl> (raw)

hi! everyone, i have a little problem with the extended assembly, when i try 
to compile this:
__asm__ __volatile__("inb %1,%0;":"=r"(returned):"r"(port));
it makes a error layout, if instead i write :
__asm__ __volatile("inb $0x64,%0;":"=r"(returned));
its work right; So how i can make a macro that recibe a port value or 
argumen like the first example???
i wan to write in any port not a const value;

i hope you can help, i'm so coriosus abpout all this things of linux.
Sorry abour my english

Martin Flores.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


             reply	other threads:[~2005-06-11 14:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-11 14:18 Martin Fflores [this message]
2005-06-11 16:38 ` inb Herbert Poetzl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY14-F280DE79C5B1BF611CB993BD0FE0@phx.gbl \
    --to=abebex17@hotmail.com \
    --cc=linux-assembly@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).