flat assembler
Message board for the users of flat assembler.

Index > Main > I am a bit confused about "pinsrd" example

Author
Thread Post new topic Reply to topic
Zoltanmatey31



Joined: 10 Jan 2023
Posts: 20
Zoltanmatey31 25 Jan 2023, 19:55
pinsrd xmm4,eax,1 ; insert double word into second position

wouldn't this be 0 bitposition set to 1 therefore the first position gets to be overwritten?
Post 25 Jan 2023, 19:55
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20563
Location: In your JS exploiting you and your system
revolution 25 Jan 2023, 20:24
The imm value is an index, not a bitmap.
Post 25 Jan 2023, 20:24
View user's profile Send private message Visit poster's website Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 2607
Furs 26 Jan 2023, 14:24
Yeah, it inserts the contents of eax into xmm4 at DWORD index 1 (starts from zero).
Post 26 Jan 2023, 14:24
View user's profile Send private message Reply with quote
Zoltanmatey31



Joined: 10 Jan 2023
Posts: 20
Zoltanmatey31 01 Feb 2023, 10:09
Thanks
Post 01 Feb 2023, 10:09
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.