Jump to content

ASM-Hex Plugin/Library?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
RobotGymnast

RobotGymnast

    Programmer

  • Members
  • PipPipPipPip
  • 143 posts
Does anybody know of any functions/libraries/plugins for use in Visual Studio that can be used to convert between ASM & Hex in a C++ environment?

Essentially what I need is to continuously read bytes from a file until I have a full instruction, so there would need to be a return value for "not an instruction", like if I put in a byte that wasn't an instruction on its own.

#2
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,713 posts
You mean a disassembler? It comes with one. Go to Tools > ILDasm, provide the PE executable, and voilá! There it is.

Your library also depends on what processor, what version of the processor, etc. For example, the Intel and MIPS processors have very different instruction sets.

#3
RobotGymnast

RobotGymnast

    Programmer

  • Members
  • PipPipPipPip
  • 143 posts
no, I mean something I can use in the program, not a tool to use. As in, a user could input hex into my program and get an assembly output or something. Something in the program, not the IDE

#4
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,713 posts
Try Google.

Disassembler Libraries

#5
RobotGymnast

RobotGymnast

    Programmer

  • Members
  • PipPipPipPip
  • 143 posts
oh thanks.. I've never had much luck finding the right libraries with google, but I guess it might've worked for this.

Thanks!