flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > Having trouble with MOVZX in 64bit assembly

Author
Thread Post new topic Reply to topic
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 06 Feb 2009, 19:58
I've downloaded and installed the 64-bit version of Windows 7 and using it to do some 64bit programming and include adjustments, everything's working good so far except the MOVZX intruction, which gives me an error no matter what registers and size specifications I use. I've tried some of the suggestions in the intel docs but this hasn't worked. Maybe a bug? Confused

_________________
Gimme a sledge hammer! I'LL FIX IT!
Post 06 Feb 2009, 19:58
View user's profile Send private message Reply with quote
MazeGen



Joined: 06 Oct 2003
Posts: 977
Location: Czechoslovakia
MazeGen 06 Feb 2009, 20:09
All of them work for me.

Code:
use64

movzx eax, al
movzx eax, ax

movzx rax, al
movzx rax, ax
    


MOVZX RAX, ECX doesn't exist because MOV EAX, ECX makes the same job.
Post 06 Feb 2009, 20:09
View user's profile Send private message Visit poster's website Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 06 Feb 2009, 21:02
[EDIT] Embarassed
Sorry, my fault, I was doing things backwards.
something like:
local qalign:QWORD
movzx al, [qalign]
they work good when you use them the right way! Rolling Eyes
[note to self] THINK before you post! Laughing
Post 06 Feb 2009, 21:02
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.