View previous topic :: View next topic |
Author |
Message |
slipknot08f How do I cheat?
Reputation: 0
Joined: 17 Dec 2005 Posts: 8
|
Posted: Wed Aug 22, 2007 1:01 pm Post subject: Minesweeper Auto Assembler - Need Help |
|
|
I am trying to create a trainer friendly code that will look for the time, compare it to "2", if not equal to 2, increase.. If equal to 2, descrease.
So basically the time will toggle between 1 and 2.
Here is my attempt at it.
Code: |
[ENABLE]
label(return)
01002FF5:
jmp 010002EC
nop
010002EC:
mov eax,2
cmp [0100579C],eax
jne 01004A54
je 01005B94
01004A54:
inc [0100579C]
jmp return
01005B94:
dec [0100579C]
jmp return
return:
[DISABLE]
01002FF5:
inc [0100579C] |
|
|
Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Wed Aug 22, 2007 1:37 pm Post subject: |
|
|
Write to the cave first.
Steps:
[ENABLE]
0. Define label
1. Define the cave/caves
2. Write to the cave/caves
3. jmp label
4. Original address
5. jmp to cave 010002EC:
6. NOP
7. label
[DISABLE]
8. Original address
9. Write original code back
Try this and see what happens, "Not tested"
Code: |
[ENABLE]
label(return)
010002EC:
mov eax,2
cmp [0100579C],eax
jne 01004A54
je 01005B94
01004A54:
inc [0100579C]
jmp return
01005B94:
dec [0100579C]
jmp return
01002FF5:
jmp 010002EC
nop
return:
[DISABLE]
01002FF5:
inc [0100579C]
|
|
|
Back to top |
|
 |
slipknot08f How do I cheat?
Reputation: 0
Joined: 17 Dec 2005 Posts: 8
|
Posted: Wed Aug 22, 2007 7:53 pm Post subject: |
|
|
It works now. Thanks alot! I did not know you had to define the cave first.
|
|
Back to top |
|
 |
forthelulz Newbie cheater
Reputation: 0
Joined: 27 Aug 2007 Posts: 15
|
Posted: Tue Aug 28, 2007 9:59 am Post subject: |
|
|
nice thanks
|
|
Back to top |
|
 |
|