From: Harry Kalogirou <harkal@gmx.net>
To: Ken Martwick <kenm@efn.org>
Cc: Linux 8086 <linux-8086@vger.kernel.org>
Subject: Re: bcc question
Date: 26 May 2002 15:03:56 +0300 [thread overview]
Message-ID: <1022414624.29568.36.camel@cool> (raw)
In-Reply-To: <Pine.GSU.4.21.0205251824160.6484-100000@garcia.efn.org>
Την Κυρ, 26-05-2002 στις 04:25, ο/η Ken Martwick έγραψε:
> How does one write inline assembly code in "bcc" to move
> a register value to a "C" variable? The following code
> is acceptable to "bcc", but "ld86" fails with something
> about undefined variables. I couldn't find any examples.
>
> --------------------------------------------------------
>
> int main()
> {
> int codeseg, datseg;
>
> #asm
> push cs
> pop ax
> mov codeseg,ax
> push ds
> pop ax
> mov datseg,ax
> #endasm
>
> --------------------------------------------------------
>
> Ken Martwick
>
Replace "mov codeseg,ax" with "mov _codeseg,ax" and
"mov datseg,ax" with "mov _datseg,ax" and it should be fine...
Harry
-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2002-05-26 12:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-26 1:25 bcc question Ken Martwick
2002-05-26 12:03 ` Harry Kalogirou [this message]
2002-05-28 19:14 ` Robert de Bath
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=1022414624.29568.36.camel@cool \
--to=harkal@gmx.net \
--cc=kenm@efn.org \
--cc=linux-8086@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.