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 


Need help with movups code injection
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4719

PostPosted: Wed Nov 09, 2022 6:58 pm    Post subject: Reply with quote

`cmp` is used for general purpose registers: rax, rcx, rdx, r8, r9...

Comparing floating point numbers is weird for a lot of reasons, even more so regarding packed data.

Use `ucomiss` to compare the first float in an xmm register against something else. The "something else" must be another xmm register or memory location- it can't be an immediate.

Code:
code:
  ...
  ucomiss xmm0,[data]
  je wherever
  ...

align 4 CC
data:
  dd (float)0.6


Your code is laid out in a strange way. If you post the entire [ENABLE] section, I'd be able to provide a more relevant example.

_________________
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 -> General Gamehacking All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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