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 


Integer into xmm?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
rog9001
Expert Cheater
Reputation: 2

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Thu Mar 10, 2016 3:36 pm    Post subject: Integer into xmm? Reply with quote

ok so I am making a camera cheat where it moves away from the car really far so you can basically see the whole map but I don't know how to make it work.
This is the original instruction:
Code:

  subss xmm0,[ecx]
  mulss xmm2,xmm0


and if I change the subss to movss then what happens is the camera moves away so far that it seams like you went through a black tunnel and everything disappeared and after waiting 5 seconds the game crashes. What I want to do is move my preferred value into xmm0. How do I do that?
I was thinking of something along these lines:
Code:

  push ebx
  mov ebx,(int)15
  movss xmm0,[ebx]
  pop ebx
  mulss xmm2,xmm0

But after doing this the game just crashes. could someone please help me Sad
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Thu Mar 10, 2016 3:57 pm    Post subject: Reply with quote

Code:
cvtsi2ss xmm0,ebx
Back to top
View user's profile Send private message
rog9001
Expert Cheater
Reputation: 2

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Thu Mar 10, 2016 4:06 pm    Post subject: Reply with quote

What is "cvtsi2ss"? I was always wandering what it is
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8585
Location: 127.0.0.1

PostPosted: Thu Mar 10, 2016 6:45 pm    Post subject: Reply with quote

rog9001 wrote:
What is "cvtsi2ss"? I was always wandering what it is


http://x86.renejeschke.de/html/file_module_x86_id_59.html
http://www.felixcloutier.com/x86/CVTSI2SS.html

Both sites offer a great coverage of the x86 instruction set.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Fri Mar 11, 2016 10:36 pm    Post subject: Reply with quote

Code:



Mulss xmm0,[new float table entry]   
Mulss xmm2,xmm0. /// this the game code



Ebx is prolly still a float value.

_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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