Results 1 to 2 of 2

Thread: Convert ASM to HEX (& vice-versa)

  1. #1
    Banned
    Join Date
    Jan 2011
    Posts
    13

    Convert ASM to HEX (& vice-versa)

    Hello,

    I'm currently trying to code a debugger which displays inline asm in the process. I am having trouble converting the bytes I find into ASM inline code. To elaborate, i'll give you two examples.

    The following hexadecimal number:

    Code:
    60
    Represents the following inline asm code respectivily:

    Code:
    pushad
    Another hexadecimal number is:

    Code:
    55
    This represents the following inline asm code respectivily:

    Code:
    push ebp
    My problem is how can I convert hexadecimal numerals into inline ASM. I hear there are many libraries that have functions which can do the job for you, if so, can you help me out? I tried doing research but failed without any results. It seems questions like these are usually ignored and are not answered.

    Regards,

    iPromise.

  2. #2
    Administrator Specific's Avatar
    Join Date
    Dec 2010
    Posts
    185
    Everything you need can be found in the Intel Developers Manual. Appendix A has the opcode map you'll be most interested in. Basically create a conversion table like they have there.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •