Carpathia
November 11th, 2000, 02:12
You can use softice to assemble your instructions into a *safe* area of memory. Assuming you have CODE ON, it will show you the assembled opcode alongside each instruction.
Beware of location dependant instructions like relative jumps; you should really temporarily assemble your new code into the location where you finally intend to patch them, unless you absolutely understand what youre doing.
If softICE isnt an option, you can use an editor like hiew, (possibly hex workshop too).
Assembling instructions by hand is a task usually reserved for bored and twisted old schoolers ;-) Let the tools do the mundane work.
Check out hutchs opcode viewer (also comes with MASM32): http://carpathia.cjb.net/opcodes.exe
Regards
Carpathia
Beware of location dependant instructions like relative jumps; you should really temporarily assemble your new code into the location where you finally intend to patch them, unless you absolutely understand what youre doing.
If softICE isnt an option, you can use an editor like hiew, (possibly hex workshop too).
Assembling instructions by hand is a task usually reserved for bored and twisted old schoolers ;-) Let the tools do the mundane work.
Check out hutchs opcode viewer (also comes with MASM32): http://carpathia.cjb.net/opcodes.exe
Regards
Carpathia