| View previous topic :: View next topic |
| Author |
Message |
noko_112 Grandmaster Cheater
Reputation: 0
Joined: 09 Jun 2009 Posts: 585
|
Posted: Mon Nov 02, 2009 1:25 am Post subject: Addss does not work? [Bug?] |
|
|
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 |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Mon Nov 02, 2009 1:58 am Post subject: |
|
|
| the destination operand has to be an xmm register.
|
|
| Back to top |
|
 |
noko_112 Grandmaster Cheater
Reputation: 0
Joined: 09 Jun 2009 Posts: 585
|
Posted: Mon Nov 02, 2009 2:55 pm Post subject: |
|
|
| ffs, What should i use for my code?
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Mon Nov 02, 2009 4:44 pm Post subject: |
|
|
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 |
|
 |
noko_112 Grandmaster Cheater
Reputation: 0
Joined: 09 Jun 2009 Posts: 585
|
Posted: Tue Nov 03, 2009 9:00 am Post subject: |
|
|
Thanks
Only problem is that i was making AOB codes and as you understand that is not possible in one line
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25807 Location: The netherlands
|
Posted: Tue Nov 03, 2009 9:20 am Post subject: |
|
|
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 |
|
 |
|