Re: Problem with "mov" in GNU GAS
- From: Timothy Baldwin <spamtrap@xxxxxxxxxx>
- Date: Tue, 25 Mar 2008 18:47:42 +0000
In message <87abkmra5y.fsf@xxxxxxxxxxxxxxxxxxxx>, Phil Carmody
<thefatphil_demunged@xxxxxxxxxxx> wrote:
junkoi <spamtrap@xxxxxxxxxx> writes:
Hello everybody,
I am writing a simple ASM code with GNU GAS. I am having some problems
with mov command. Please could anybody tell me why 2 lines (*) and
(**) are not equivalent?? (currently my code works as expected with
(**), but not with (*)
(My program is in 16bit mode)
---
var:
.long 0xf1234
So var is an address. At that address is reserved space for a
long, which is to be initialised to 0xf1234.
.code16gcc
movl var, %ecx // (*)
Here ecx now holds the address where the 0xf1234 above is stored.
No that loads 0xf1234 or whatever happens to be at var into %ecx. THe bug
must be elsewhere.
.
- References:
- Problem with "mov" in GNU GAS
- From: junkoi
- Re: Problem with "mov" in GNU GAS
- From: Phil Carmody
- Problem with "mov" in GNU GAS
- Prev by Date: Re: int 0x13 utility
- Next by Date: Re: Problem with "mov" in GNU GAS
- Previous by thread: Re: Problem with "mov" in GNU GAS
- Next by thread: Re: Problem with "mov" in GNU GAS
- Index(es):
Relevant Pages
|