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 


Addss does not work? [Bug?]

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
noko_112
Grandmaster Cheater
Reputation: 0

Joined: 09 Jun 2009
Posts: 585

PostPosted: Mon Nov 02, 2009 1:25 am    Post subject: Addss does not work? [Bug?] Reply with quote

Ok, here is the case:

In Prototype (The game) There is the health writher that is something like

Code:
 Movss [esi+0c],xmm0

And It is described like
Quote:
Mov scalar single-fp


So a searched a little how to add command whould be
Code:
Addss [esi+0c],xmm0


But it wont work/compiled (By the 'singel line assembler')

Is it a bug in CE, or is it not a command in CE's ASM?
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Mon Nov 02, 2009 1:58 am    Post subject: Reply with quote

the destination operand has to be an xmm register.
Back to top
View user's profile Send private message
noko_112
Grandmaster Cheater
Reputation: 0

Joined: 09 Jun 2009
Posts: 585

PostPosted: Mon Nov 02, 2009 2:55 pm    Post subject: Reply with quote

ffs, What should i use for my code?
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Mon Nov 02, 2009 4:44 pm    Post subject: Reply with quote

do the add, then the move.

jump to a code cave
save the registers you have to trash in the process
do whatever
clean up
jump back
Back to top
View user's profile Send private message
noko_112
Grandmaster Cheater
Reputation: 0

Joined: 09 Jun 2009
Posts: 585

PostPosted: Tue Nov 03, 2009 9:00 am    Post subject: Reply with quote

Thanks

Only problem is that i was making AOB codes and as you understand that is not possible in one line Sad
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: Tue Nov 03, 2009 9:20 am    Post subject: Reply with quote

there might be a subss a few lines before that movss

I have a feeling that if you nop out that subss you might have what you want.

Note: If it's the health routine: It's used by other objects as well

_________________
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
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming 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