linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: peter <p.willis@telus.net>
To: linux-assembly@vger.kernel.org
Subject: asm statement in C
Date: Sun, 16 Feb 2003 20:04:25 -0800	[thread overview]
Message-ID: <200302162004.25528.p.willis@telus.net> (raw)

Hello,

I would like to pass a string pointer from a C string
to an asm(); block.

ie:

function()
{
	static char buff[]={"this is some text\n"};
	asm(
		"pushl mytext
		//morecode...
		"
		:
		:
		);
}

Anyone know what format the parameter section by the second colon
should be in porder to pass 'buff'.

Thanks for any help.

Peter

                 reply	other threads:[~2003-02-17  4:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200302162004.25528.p.willis@telus.net \
    --to=p.willis@telus.net \
    --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 NNTP newsgroup(s).