Posted: Mon Jun 25, 2007 5:15 am Post subject: creating an asm opcode
Don't ask why I'll +Rep... my code is dynamically allocated and inserted into a program and i need to be able to create a "call" and "jmp" op code to the start address and to a function used by the code.
In mips its easy enough for a jal,
(0x0C000000 | (0x03FFFFFF & ((u32)address >> 2)))
but i cant find out how to do it for x86
I just used this thing a while ago, I checked manually with CheatEngine - I've allocated some memory, added a JMP and start changing values.. about 2 mins..
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