flat assembler
Message board for the users of flat assembler.

Index > Main > [not a bug] fasmw 1.73.25 bug DQ and cvtsi2ss

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1088
Roman
Code:
align 8
mousePos dq 0
invoke GetCursorPos,mousePos
cvtsi2ss xmm1,[mousePos]
cvtsi2ss xmm2,[mousePos+4]
    

Incorrect value in xmm1 and xmm2

This work right
Code:
align 8
mousePos dd 0,0
invoke GetCursorPos,mousePos
cvtsi2ss xmm1,[mousePos]
cvtsi2ss xmm2,[mousePos+4]
    
Post 10 Dec 2020, 11:02
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 18469
Location: In your JS exploiting you and your system
revolution
The 64-bit qword value is a valid assembly instruction. fasm did exactly what you asked.

If you want to override the size then:
Code:
cvtsi2ss xmm1,dword[mousePos]    


Please read the manuals before claiming to find bugs.
Post 10 Dec 2020, 11:37
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1088
Roman
Quote:

before claiming

I just only repost my problem.

Thanks for you help.

I thinked cvtsi2ss xmm1,[mousePos] always dword !
Post 10 Dec 2020, 16:43
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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.