public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Brian Beardall <brian@rapsure.net>
To: binutils@sourceware.org
Subject: labels, and values for mov instructions is gas
Date: Fri, 09 Nov 2007 16:25:00 -0000	[thread overview]
Message-ID: <1194625564.29036.4.camel@rapsure.rapsure.net> (raw)

.arch i8086
.code16

.text
foo:
  mov $exit,%ax
  mov $10,%cx
  loop foo
exit:
  int $0x80
dumb:
   .int 5,5,3,2,1,2,4,2,3,4,3,2,1,5
again:
  .word 1,2,3,4,5,6,7
.equ help, 5


With this code I need the address that is at the label exit moved into
the ax register. Right now all I get is 0x0000 moving into the ax
register. How might I go about getting the correct address into ax
without doing a as -a -o test.o test.asm , and looking at the symbol
table, and manually entering the value?

             reply	other threads:[~2007-11-09 16:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-09 16:25 Brian Beardall [this message]
2007-11-09 16:40 ` Ian Lance Taylor

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=1194625564.29036.4.camel@rapsure.rapsure.net \
    --to=brian@rapsure.net \
    --cc=binutils@sourceware.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).