View previous topic :: View next topic |
Author |
Message |
wunder312355 Grandmaster Cheater Reputation: -1
Joined: 14 May 2007 Posts: 568
|
Posted: Thu May 20, 2010 7:28 pm Post subject: AA Problem |
|
|
Im trying to get the minesweeper time to hit 99 after it hits 10 seconds so whats the problem with this code?
Im getting an error that says Error in Line 9 (ChiliDog:): This address specifier is not valid .. =(
Healp Ploox This stuff is really fun but kinda confusing
Code: | [enable]
alloc(newmem,2048)
alloc(newmemt,2048)
label(returnhere)
label(exit)
label(originalcode)
registersymbol(ChiliDog)
ChiliDog:
dd 0a
01002ff5:
jmp newmem
nop
returnhere:
newmem:
push eax
mov eax,[0100579C]
mov [ebx],eax
pop eax
cmp [ebx],[ChiliDog]
jne originalcode
je newmemt
newmemt:
mov [0100579C],63
jmp returnhere
originalcode:
inc [0100579C]
exit:
jmp returnhere
[DISABLE]
dealloc(newmem)
dealloc(newmemt)
unregistersymbol(ChiliDog)
01002FF5:
inc [0100579C] |
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Thu May 20, 2010 7:34 pm Post subject: |
|
|
you'll also need an alloc(ChiliDog,4)
Or move chilidog after and use it as a label
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
wunder312355 Grandmaster Cheater Reputation: -1
Joined: 14 May 2007 Posts: 568
|
Posted: Thu May 20, 2010 7:48 pm Post subject: |
|
|
Thanks for the quick reply DB love you!
I got the code working much more efficiently
Code: | [ENABLE]
alloc(newmem,2048)
alloc(newmemt,2048)
alloc(increaser,2048) //2kb should be enough
label(returnhere)
label(exit)
label(originalcode)
01002ff5:
jmp newmem
nop
returnhere:
newmem:
mov eax,[0100579C]
cmp eax,0a
jne originalcode
je newmemt
newmemt:
mov [0100579C],63
jmp returnhere
originalcode:
inc [0100579C]
exit:
jmp returnhere
[DISABLE]
dealloc(newmem)
dealloc(newmemt)
01002FF5:
inc [0100579C] |
|
|
Back to top |
|
|
|