 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
$hadow Newbie cheater
Reputation: 1
Joined: 14 Aug 2009 Posts: 11 Location: Undefined
|
Posted: Tue Jan 04, 2011 5:34 pm Post subject: Need some help with Auto Assembler? (I'm a noob) |
|
|
First of all, thanks for taking the time to read this!
And second, I'm a complete noob at this.
So obviously I'm starting with Minesweeper.
I'm trying to make the timer increase to 60, then decrease to 0, and repeat.
I don't really know what's wrong with the script, although I have a few thoughts.
I did this with the code injection template:
| Code: |
alloc(increasing,1024) //which was "newmem" in the template
alloc(decreasing,1024)
label(returnhere)
label(originalcode)
label(exit)
01002FF5:
jmp increasing
nop
returnhere:
increasing:
inc [0100579c]
cmp [0100579c],0
je decreasing
jne increasing
decreasing:
dec [0100579c]
cmp [0100579c],3C //3C would be 60
je increasing
jne decreasing
originalcode:
nop //it was inc [0100579c] first
exit:
jmp returnhere
|
Btw, I can inject it but nothing changes.
Thanks for any help! |
|
| Back to top |
|
 |
Geri Moderator
Reputation: 111
Joined: 05 Feb 2010 Posts: 5627
|
Posted: Tue Jan 04, 2011 6:18 pm Post subject: |
|
|
This will set the timer to 0 when it is reaching 60.
Btw, I have no idea why it is making any sense to change it to 60 then 0 and 60 again and 0 again.
| Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
inc [0100579C]
cmp [0100579C],3C
jne originalcode
mov [0100579C],0
originalcode:
//inc [0100579C]
exit:
jmp returnhere
"winmine.exe"+2FF5:
jmp newmem
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"winmine.exe"+2FF5:
inc [0100579C]
//Alt: db FF 05 9C 57 00 01 |
Your code just seems to be an infinite loop. When will it end? _________________
Last edited by Geri on Tue Jan 04, 2011 6:20 pm; edited 1 time in total |
|
| Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Tue Jan 04, 2011 6:19 pm Post subject: |
|
|
I don't know why he want this, but. Here:
| Code: | alloc(newmem,1024) //which was "newmem" in the template
label(returnhere)
label(inc1_dec0)
label(increase)
label(pass)
01002FF5:
jmp newmem
nop
returnhere:
newmem:
cmp [inc1_dec0],1
je increase
dec [0100579c]
cmp [0100579c],0
jne pass
mov [inc1_dec0],1
jmp short pass
increase:
inc [0100579c]
cmp [0100579c],3c
jne pass
mov [inc1_dec0],0
pass:
jmp returnhere
inc1_dec0:
db 01 |
| Geri wrote: | | Your code just seems to be an infinite loop. When will it end? |
It will never end  _________________
|
|
| Back to top |
|
 |
Geri Moderator
Reputation: 111
Joined: 05 Feb 2010 Posts: 5627
|
Posted: Tue Jan 04, 2011 6:23 pm Post subject: |
|
|
Yeah, that's my point. It doesn't make sense. _________________
|
|
| Back to top |
|
 |
$hadow Newbie cheater
Reputation: 1
Joined: 14 Aug 2009 Posts: 11 Location: Undefined
|
Posted: Tue Jan 04, 2011 6:47 pm Post subject: |
|
|
I was doing it for the learning and experimenting part of it
I observed the codes and I understand now.
Thank you both for your help! |
|
| Back to top |
|
 |
|
|
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
|
|