Page 1 of 1

Bytes to ASM

Posted: Sat Feb 12, 2011 7:07 am
by braveheart

Code: Select all

oGame = OpenProcess_(#PROCESS_ALL_ACCESS,#Null,prcID) 
Poke(buffer+0,$8b)
Poke(buffer+1,$00)
WriteProcessMemory_(oGame,hAddress,buffer,2,#Null)
Is there a way to convert this into inline asm code?

Re: Bytes to ASM

Posted: Sat Feb 12, 2011 10:17 am
by DarkDragon
braveheart wrote:

Code: Select all

oGame = OpenProcess_(#PROCESS_ALL_ACCESS,#Null,prcID) 
Poke(buffer+0,$8b)
Poke(buffer+1,$00)
WriteProcessMemory_(oGame,hAddress,buffer,2,#Null)
Is there a way to convert this into inline asm code?
Inline asm? I think you don't understand what inline asm means.

Nevertheless you can convert it to readable assembler code using disassemblers while running your purebasic program (a bad one is implemented inside the onerror library of purebasic).