Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Bug or not implemented yet?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
MMM-304
Expert Cheater
Reputation: 0

Joined: 17 Aug 2020
Posts: 170
Location: Milkey Way

PostPosted: Thu Oct 15, 2020 1:37 am    Post subject: Bug or not implemented yet? Reply with quote

the instruction
Code:
insertps

seems to be a bugging the code.

i dont think its not implemented because if it wasnt CE wouldnt accept it but it doent show any error, but on the other hand it doesnt work in ASM, in fact it also corrupts every other instruction that comes after it:

here is the proof:



INSTRUCTION NOT IMPLEMENTED YET.PNG
 Description:
 Filesize:  25.84 KB
 Viewed:  1608 Time(s)

INSTRUCTION NOT IMPLEMENTED YET.PNG


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25807
Location: The netherlands

PostPosted: Thu Oct 15, 2020 4:30 am    Post subject: Reply with quote

both, but it is in next version
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
MMM-304
Expert Cheater
Reputation: 0

Joined: 17 Aug 2020
Posts: 170
Location: Milkey Way

PostPosted: Thu Oct 15, 2020 5:04 am    Post subject: Reply with quote

COOL. thanks for reply
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3327

PostPosted: Thu Oct 15, 2020 5:30 am    Post subject: Reply with quote

Intel manual sounds pretty cryptic on this instruction.
What does it actually do (how is the selection and insertion done)?
Back to top
View user's profile Send private message
MMM-304
Expert Cheater
Reputation: 0

Joined: 17 Aug 2020
Posts: 170
Location: Milkey Way

PostPosted: Thu Oct 15, 2020 6:29 am    Post subject: Reply with quote

this instruction replace 4*imm8 bytes in xmm registers (imm8 = 0,1,2,3) with the given memory or register

Code:
INSERTPS xmm1, xmm2/m32, imm8


for example if
Code:
xmm2: 1111aaaa 2222bbbb 3333ccccc 4444dddd

and you want its 2222bbbb to become something like 5555EEEE without changing other values then this instruction comes in handy.
you will do

Code:

mov [myVal],5555EEEE
insertps xmm2,[myVal],10


there are many other ways as well but this is one is easier

this operates exactly opposite to extractps but instead of using general-purpose-registers/m32 it use FPU-registers(xmm)/m32


Last edited by MMM-304 on Thu Oct 15, 2020 1:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4706

PostPosted: Thu Oct 15, 2020 12:06 pm    Post subject: Reply with quote

Quote:
INSERTPS xmm1, xmm2/m32, imm8
Insert a single-precision floating-point value selected by imm8 from xmm2/m32 into xmm1 at the specified destination element specified by imm8 and zero out destination elements in xmm1 as indicated in imm8.

Say the source operand is an xmm register. insertps will copy one of the four floats in xmm2 into one of the four positions in xmm1.
If the source operand is an m32, there is only one position to choose, so some instruction encodings are redundant.
After copying, it may also zero some of the values in xmm1. Depending on which values you zero, some instruction encodings just don't make sense. (e.g. if the entire register gets zeroed, why copy anything)

Which position to copy from/to and which elements to zero are encoded in imm8:
  • imm8[7:6] is the index into the source (i.e. which float it copies from xmm2)
  • imm8[5:4] is the index into the destination (i.e. which position in xmm1 to write the float to)
  • imm8[3:0] is the zmask (i.e. which positions to zero in the destination)
Code:
// xmm0:  13.0f 14.5f -7.0f 0.45f
// xmm1:   1.0f  2.0f  3.0f  4.0f

insertps xmm0,xmm1,98

// 0x98 = 10011000
// 10 = source index 2
// 01 = destination index 1
// 1 0 0 0 = zero destination index 3

// xmm0:  13.0f  3.0f -7.0f  0.0f
// xmm1:   1.0f  2.0f  3.0f  4.0f

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites