| View previous topic :: View next topic |
| Author |
Message |
darkassassinclone How do I cheat?
Reputation: 0
Joined: 28 Jun 2012 Posts: 3
|
Posted: Thu Jun 28, 2012 6:50 pm Post subject: ASM Help |
|
|
Hello all, first post;
im trying to run code when a routine is called (Ingame Menu), when i press the button it goes from 00--01 and thats when i want my code to execute (and not delete itself)
right now i have:
| Code: |
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem:
pushes into function, then calls it
originalcode:
need help here
exit:
jmp returnhere
menu address:
jmp newmem
returnhere:
|
using memory view it looks like:
(not pressed) address = x, bytes = 00 00, Opcode = add [eax],al
(pressed) address = x, bytes = 01 00, Opcode = add [eax],eax
what would i put in "original code:" ?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25818 Location: The netherlands
|
Posted: Thu Jun 28, 2012 7:23 pm Post subject: |
|
|
the original bytes of the instructions ad "menu address" that you overwrite with the 5 byte jmp
If you use the code injection template this will be done for you
_________________
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 |
|
 |
darkassassinclone How do I cheat?
Reputation: 0
Joined: 28 Jun 2012 Posts: 3
|
Posted: Thu Jun 28, 2012 8:12 pm Post subject: |
|
|
| K got it working by changing address
|
|
| Back to top |
|
 |
|