LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-31-2006, 07:04 PM   #1
lilzz
Member
 
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

endm

thanks
 
Old 08-31-2006, 08:43 PM   #2
w3bd3vil
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 08:46 PM.
 
  


Reply


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 11:55 PM
assembly instruction - pushl - what it does? mehuljv Programming 7 04-23-2005 04:33 AM
what does this instruction mean sibtay Programming 2 08-17-2004 06:38 AM
Trouble getting .avi .mov .mov files to run redman13 Linux - Newbie 4 11-09-2003 02:46 PM
Illegal instruction madsjakob Linux - Software 0 10-28-2003 08:25 AM


All times are GMT -5. The time now is 12:21 PM.

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