Problem with "mov" in GNU GAS



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

..code16gcc
movl var, %ecx // (*)
movl $0xf1234, %ecx // (**)


Many thanks,
J
Many thanks,

.



Relevant Pages

  • Re: assembly in Platform Builder
    ... performance count registers and scale the processor frequency. ... writing in C++ the whole time in PB, so making the switch to assembly I am ... > Well, using C and the _asm keyword, I can include x86 assembly code ... > Try it with ARM asm code. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Rewrite Kernel
    ... *writing* asm code is painfully slow and code is not portable. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Problem with "mov" in GNU GAS
    ... I am writing a simple ASM code with GNU GAS. ... with mov command. ... So var is an address. ... Here ecx now holds the address where the 0xf1234 above is stored. ...
    (comp.lang.asm.x86)
  • Re: Problem with "mov" in GNU GAS
    ... I am writing a simple ASM code with GNU GAS. ... with mov command. ... So var is an address. ... Here ecx now holds the address where the 0xf1234 above is stored. ...
    (comp.lang.asm.x86)