linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paul Irofti <bulibuta@gmail.com>
To: Frank Kotler <fbkotler@comcast.net>
Cc: linux-assembly@vger.kernel.org
Subject: Re: prime numbers
Date: Thu, 14 Jul 2005 05:21:38 +0300	[thread overview]
Message-ID: <42D5CC32.4080905@gmail.com> (raw)
In-Reply-To: <42D5AE75.4030100@comcast.net>

Frank Kotler wrote:

> Paul Irofti wrote:
>
> ...
>
>> sieve.o(.text+0x1):sieve.s:20: relocation truncated to fit: R_386_8 
>> .data
>
>
> ...
>
>>     movb $test, %dl
>
>
> Pretty sure you want "movb test, %dl" - "$test" indicates that you're 
> trying to move the *address* of your "test" variable (not the 
> contents) into %dl... and it won't fit! (...etc.)
>
> Best,
> Frank
>
> -
> To unsubscribe from this list: send the line "unsubscribe 
> linux-assembly" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
ok, so than what's the diffrence between:
a) movb $test, %al
b) movb test, %al
c) movb (test), %al
c) movb ($test), %al      #if this exists!

and how come when i access kernel ops i use $<oper>

i.e. movl $__NR_write, %eax    #i actually append the address 1?! not 
put the value 1?!

these are very confusing stuff for me. and i would greatly apreciate it 
if explained! thanks a lot Frank!

  reply	other threads:[~2005-07-14  2:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-13 22:40 prime numbers Paul Irofti
2005-07-14  0:14 ` Frank Kotler
2005-07-14  2:21   ` Paul Irofti [this message]
2005-07-14  2:51     ` Frank Kotler
2005-07-14  3:02       ` Paul Irofti

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=42D5CC32.4080905@gmail.com \
    --to=bulibuta@gmail.com \
    --cc=fbkotler@comcast.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).