justinstenning / SharpDisasm

SharpDisasm - x86 / x86-64 disassembler for .NET
https://www.nuget.org/packages/SharpDisasm
Other
212 stars 39 forks source link

Translate assembly code to hex code? #21

Closed sesey closed 6 years ago

sesey commented 6 years ago

I thank everyone for the project. How do I translate assembly code to hex code?

justinstenning commented 6 years ago

what do you mean by this? Do you mean compile ASM (in which case use a ASM compiler)? Or do you mean view machine code as hex (just convert binary to hex)?

sesey commented 6 years ago

I want to convert machine code to hex code.

sesey commented 6 years ago

I do not want to do this with the ASM compiler. With the SharpDisasm library I want to convert the assembly code to hex code. Can hex code conversion be done with Udi86 class? Is this possible?

Fonger commented 6 years ago

As the name suggest, both SharpDiasm and udis86 are Disassembler. So, NO

sesey commented 6 years ago

If disassembler can be done, assembler can also be done.

justinstenning commented 6 years ago

Yes, but not with a disassembler, for that you need a compiler/assembler