| View previous topic :: View next topic |
| Author |
Message |
kickclock Advanced Cheater
Reputation: 0
Joined: 15 Jan 2008 Posts: 73
|
Posted: Fri May 28, 2010 2:27 am Post subject: how to use "Custom" scan value ? |
|
|
i want eax compare with input value, not #100
how to write this code ?
| Code: |
mov eax,[edx] //eax gets the new value
cmp eax,#100 //compare eax with #100, # tells the assembler to read it as a decimal instead of hex
setz al //sets al to 1 if match, 0 if false (upper bits of eax are ignored)
ret |
edit:
it there some example script ?
_________________
Love CE |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 474
Joined: 09 May 2003 Posts: 25949 Location: The netherlands
|
Posted: Fri May 28, 2010 6:33 am Post subject: |
|
|
Just read the a bit higher
| Code: |
alloc(scantext,4) //will get the pointer to the given string
alloc(scanvalue,8) //will get the value of the input string converted to an 8-byte value
alloc(singlescanvalue,4) //will get the float type of the input
alloc(doublescanvalue,8) //will get the double type of the input
|
so, [scanvalue] contains the value entered in 8 byte format (and that can be converted to 4 byte without anything special)
so:
| Code: |
mov eax,[scanvalue]
cmp eax,[edx]
setz al //if match, set to true
|
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
kickclock Advanced Cheater
Reputation: 0
Joined: 15 Jan 2008 Posts: 73
|
Posted: Fri May 28, 2010 7:56 am Post subject: |
|
|
TAAAANKS DarkByte !
now i can use this to scan some game , which was Encode memory value ~~!
edit:
i think you could add a step in Tutorial
name "Encode value scan"
show people how to use "Custom " scan.
in some game , value show in game window is 100
but in memory ,value should encode like this
ror eax,09
xor eax,[xxxx]
rol eax,19 // this is the real value in memory , not #100
_________________
Love CE |
|
| Back to top |
|
 |
tianshizhiluan How do I cheat?
Reputation: 0
Joined: 15 Dec 2010 Posts: 1
|
Posted: Sun Dec 26, 2010 7:57 am Post subject: |
|
|
| but opcode: mov eax, [edx + 8] can't be compiled???
|
|
| Back to top |
|
 |
Geri Moderator
Reputation: 112
Joined: 05 Feb 2010 Posts: 5627
|
Posted: Sun Dec 26, 2010 6:47 pm Post subject: |
|
|
| tianshizhiluan wrote: | | but opcode: mov eax, [edx + 8] can't be compiled??? |
No, it is not compiled in that syntax. Use instructions in the same syntax as CE and it will work.
This can be compiled already. Remove the unneccessary spaces.
_________________
|
|
| Back to top |
|
 |
|