Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-31-2006, 06:04 PM   #1
Registered: Aug 2006
Posts: 73

Rep: Reputation: 15
Assembly Mov instruction for qword

Hi all,
I have a question regrding to mov instruction in assembly (gcc) immediate to memory

so far the compiler supports
movl $0xA5A5A5A5 %es%edx) (32 bit)
but I like to do 64 bit
movq $0xA5A5A5A5A5A5A5A5, %es%edx)
but compiler complain about movq instruction and the
constant is being too big.

anyone has an idea how to do macro for mov (64 bit)

marco movq


Old 08-31-2006, 07:43 PM   #2
Senior Member
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
64 bit registers dont have an "e" they have an "r"
eg: eax (32bit) == rax (64bit) etc.
atleast on amd64 machines.

if i remeber right in piv its eeax, eebx an extra e

Last edited by w3bd3vil; 08-31-2006 at 07:46 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Which linux instruction is equivalent to windows' instruction "tracert"? backpacker Linux - Software 1 04-04-2006 10:55 PM
assembly instruction - pushl - what it does? mehuljv Programming 7 04-23-2005 03:33 AM
what does this instruction mean sibtay Programming 2 08-17-2004 05:38 AM
Trouble getting .avi .mov .mov files to run redman13 Linux - Newbie 4 11-09-2003 01:46 PM
Illegal instruction madsjakob Linux - Software 0 10-28-2003 07:25 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:49 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration