| View previous topic :: View next topic |
| Author |
Message |
Shintarou How do I cheat?
Reputation: 0
Joined: 22 Aug 2007 Posts: 9
|
Posted: Thu Aug 23, 2007 6:27 pm Post subject: Minesweeper (auto assemble script) |
|
|
This was suppose to work like this: 1st the timer would increase to 5, after it would decrease till 0, then it would start increasing again and repeating the same process over and over. Seems like im doing something wrong and i really cant fix it. Can anyone give me some help plz? here is the script:
| Code: |
[ENABLE]
label(return)
010002EC: //cave
mov eax,5 //move 5 into the memory
cmp [0100579C],eax //compare timer with 5
jb 01004A54 //jmp to 01004A54 if timer is below 5
je 01005B94 //jmp to 01005B94 if timer is equal to 5
01004A54: //second cave
inc [0100579C] //increase timer
jmp return //jmp return
01005B94: //third cave
dec [0100579C] //decrease timer
jmp 0101f200 //jmp to 0101f200
0101f200: //forth cave
cmp [0100579C],0 //compare timer with 0
jne 01005B94 //if jmp not equal jmp to 01005b94
je return //if jmp equal jmp to return
01002FF5: //original adress
jmp 010002EC //jmp to cave 010002ec
nop
return:
[DISABLE]
01002FF5:
inc [0100579C] |
edit: fixed the code (now i understand i need code caves to do this), now it increases till 5, after reaching 5 it automatically goes back to 0 and reapeat the process over and over.
peace
_________________
|
|
| Back to top |
|
 |
Haruhoo How do I cheat?
Reputation: 0
Joined: 15 Jul 2007 Posts: 6
|
Posted: Fri Aug 24, 2007 3:22 pm Post subject: |
|
|
| Ehmm... Nice code! i dont even know how to make Auto Assemble codes >.<
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Fri Aug 24, 2007 4:29 pm Post subject: |
|
|
| You should look at the sticky in this section then and read over it.
|
|
| Back to top |
|
 |
|