flat assembler
Message board for the users of flat assembler.

Index > Main > Movzx 64 bits

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1701
Roman 26 Nov 2022, 08:09
I want do movzx r8, [ppp]
Ppp dd 2.0

Like as convert float to double in register r8
Post 26 Nov 2022, 08:09
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20146
Location: In your JS exploiting you and your system
revolution 26 Nov 2022, 08:18
Use the FPU or SSE.
Code:
fld [Ppp]
fstp [temp]
mov r8,[temp]
;...
temp dq ?    
Post 26 Nov 2022, 08:18
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1701
Roman 26 Nov 2022, 08:24
revolution wrote:
Use the FPU or SSE.
Code:
fld [Ppp]
fstp [temp]
mov r8,[temp]
;...
temp dq ?    

Now I do this.
But thinked not using fpu and temp.
And thinked exist command like as movzx for 64 bits
I am using Sse cvtss2sd
Post 26 Nov 2022, 08:24
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20146
Location: In your JS exploiting you and your system
revolution 26 Nov 2022, 08:30
R8 is primarily an integer register. You can store float values in it, but you can't do float operations inside r8.

Use SSE with xmm registers for float operations.
Post 26 Nov 2022, 08:30
View user's profile Send private message Visit poster's website 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.