Re: prime numbers
Paul Irofti <[email protected]>
| Newsgroups | org.kernel.vger.linux-assembly |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected] > 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!