| View previous topic :: View next topic |
| Author |
Message |
Ugleh Newbie cheater
Reputation: -1
Joined: 24 Oct 2009 Posts: 17
|
Posted: Wed Jul 03, 2013 11:44 pm Post subject: Subtract 2 float values then jump if negative |
|
|
Either Subtract them and if they are negative jump or Compare them and if one is greater then the other jump.
For more details. This is the opcode for the Z position of a player.
In newmem id like to do what I asked above and ill edit the rest to where to jump to. I have that part covered. I already tried multiple different things like
| Code: | cmpl [esi+000000EC],xmm0
jg whatever |
| Code: | subl [esi+000000EC],xmm0
jg whatever |
| Code: | alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
movss [esi+000000EC],xmm0
exit:
jmp returnhere
"DP.exe"+11FACE:
jmp newmem
nop
nop
nop
returnhere:
|
|
|
| Back to top |
|
 |
Gniarf Grandmaster Cheater Supreme
Reputation: 43
Joined: 12 Mar 2012 Posts: 1285
|
Posted: Thu Jul 04, 2013 6:24 pm Post subject: |
|
|
| Code: | comiss xmm0,dword [esi+000000EC] //[esi+EC] must be the second operand
ja or jb Somewhere // jg/jl won't work |
|
|
| Back to top |
|
 |
Ugleh Newbie cheater
Reputation: -1
Joined: 24 Oct 2009 Posts: 17
|
Posted: Thu Jul 04, 2013 8:12 pm Post subject: |
|
|
| Just learned it was comiss like 20 minutes ago too. Thanks anyways. |
|
| Back to top |
|
 |
|