How do I convert hex to asm

I'm looking for a program to convert hex to ASM

035E277B 88000000 What does this mean MOV AH,03? CMP?
C4034A78 0000FF00

I want to paste in hex code and have it spit out the ASM readable code.

Thanks

Comments

  • you could write it in an .asm file, as db 035E277B ... assemble it and view it with a debugger.

    : I'm looking for a program to convert hex to ASM
    :
    : 035E277B 88000000 What does this mean MOV AH,03? CMP?
    : C4034A78 0000FF00
    :
    : I want to paste in hex code and have it spit out the ASM readable code.
    :
    : Thanks
    :

  • : you could write it in an .asm file, as db 035E277B ... assemble it and view it with a debugger.
    :
    : : I'm looking for a program to convert hex to ASM
    : :
    : : 035E277B 88000000 What does this mean MOV AH,03? CMP?
    : : C4034A78 0000FF00
    : :
    : : I want to paste in hex code and have it spit out the ASM readable code.
    : :
    : : Thanks
    : :
    :
    :
    [blue]Use debugger or disassembler. You have to type (I doubt there is a PASTE operation for a memory dump) into a memory dump window your HEX values and then 'point' the EIP to this memory dump - the HEX values will be turned into readable ASM.[/blue]
  • : I'm looking for a program to convert hex to ASM
    : 035E277B 88000000 What does this mean MOV AH,03? CMP?
    : C4034A78 0000FF00
    : I want to paste in hex code and have it spit out the ASM readable code.
    : Thanks

    [green]
    I made a program that disassembled a .com file to a hex dump
    20,36,61,F4,B5,etc
    then a program that loaded it and read the numbers
    and wrote their value to a file. The FC.EXE showed the OUTfile
    was the same as the .com INfile.
    So convert value to ascii in mem and write mem to file, was the hex dump.
    Read the ascii to value and write the values in character form to OUTfile was the assembler.
    It's quite simple actually.
    I'm thinking that what you might want to do is make a small .com
    file from yer .asm code and run it through your hex dumper
    so you know what the output code is.
    Then make an ascii reader for that form,
    that writes to an outfile, and that's your assembled file.
    Also, Norton Commanders editor shows the value of the character
    under the cursor in decimal.
    It's easy to see what the values of a .COM or INfile in your case are.
    A decimal to hex conversion chart neer by helps.
    your 8 digit number appears to be a Dword hex dump.
    Words are stored in reverse, LO byte then HI byte,
    Dwords store words in reverse too, LO word then HI word,
    and the words are reversed also.
    So 01,02,03,04 is stored as 04030201 (I hope that's right?)
    You may want to adjust your hex dumper from 32 bit to 16 bit er vise versa.
    Bitdog
    [/green]

  • Try these steps:

    1. You can try making a binary file using any HEX editor,
    I'm using HexWorks for such things:
    http://www.bpsoft.com/downloads/

    2. Then, you may open your binary file in Emulator of Emu8086:
    http://www.emu8086.com

    by the way, Emu8086 has now fully functional 30 day free trial.

    Enjoy!
  • [b][red]This message was edited by tburcham at 2003-6-26 9:10:30[/red][/b][hr]
    Hi gazlon,
    You can use OllyDbg with any (32-bit) exe or process.
    When you have one in the "CPU" window, go to "Binary/
    Edit" in the context menu, or press Ctrl+E. You can then
    paste the hex values into the "HEX+00" box. You'll most
    likely need to deselect "keep size".

    tburcham


  • : : I'm looking for a program to convert hex to ASM
    : : 035E277B 88000000 What does this mean MOV AH,03? CMP?
    : : C4034A78 0000FF00
    : : I want to paste in hex code and have it spit out the ASM readable code.
    : : Thanks
    :
    : [green]
    : I made a program that disassembled a .com file to a hex dump
    : 20,36,61,F4,B5,etc
    : then a program that loaded it and read the numbers
    : and wrote their value to a file. The FC.EXE showed the OUTfile
    : was the same as the .com INfile.
    : So convert value to ascii in mem and write mem to file, was the hex dump.
    : Read the ascii to value and write the values in character form to OUTfile was the assembler.
    : It's quite simple actually.
    : I'm thinking that what you might want to do is make a small .com
    : file from yer .asm code and run it through your hex dumper
    : so you know what the output code is.
    : Then make an ascii reader for that form,
    : that writes to an outfile, and that's your assembled file.
    : Also, Norton Commanders editor shows the value of the character
    : under the cursor in decimal.
    : It's easy to see what the values of a .COM or INfile in your case are.
    : A decimal to hex conversion chart neer by helps.
    : your 8 digit number appears to be a Dword hex dump.
    : Words are stored in reverse, LO byte then HI byte,
    : Dwords store words in reverse too, LO word then HI word,
    : and the words are reversed also.
    : So 01,02,03,04 is stored as 04030201 (I hope that's right?)
    : You may want to adjust your hex dumper from 32 bit to 16 bit er vise versa.
    : Bitdog
    : [/green]
    :
    Actually, the byte and word orders vary with different operating systems. There's a *nix utility to tell you which any given file is. Just search for little endian and big endian, you'll find out more.
  • : : : I'm looking for a program to convert hex to ASM
    : : : 035E277B 88000000 What does this mean MOV AH,03? CMP?
    : : : C4034A78 0000FF00
    : : : I want to paste in hex code and have it spit out the ASM readable code.
    : : : Thanks
    : :
    : : [green]
    : : I made a program that disassembled a .com file to a hex dump
    : : 20,36,61,F4,B5,etc
    : : then a program that loaded it and read the numbers
    : : and wrote their value to a file. The FC.EXE showed the OUTfile
    : : was the same as the .com INfile.
    : : So convert value to ascii in mem and write mem to file, was the hex dump.
    : : Read the ascii to value and write the values in character form to OUTfile was the assembler.
    : : It's quite simple actually.
    : : I'm thinking that what you might want to do is make a small .com
    : : file from yer .asm code and run it through your hex dumper
    : : so you know what the output code is.
    : : Then make an ascii reader for that form,
    : : that writes to an outfile, and that's your assembled file.
    : : Also, Norton Commanders editor shows the value of the character
    : : under the cursor in decimal.
    : : It's easy to see what the values of a .COM or INfile in your case are.
    : : A decimal to hex conversion chart neer by helps.
    : : your 8 digit number appears to be a Dword hex dump.
    : : Words are stored in reverse, LO byte then HI byte,
    : : Dwords store words in reverse too, LO word then HI word,
    : : and the words are reversed also.
    : : So 01,02,03,04 is stored as 04030201 (I hope that's right?)
    : : You may want to adjust your hex dumper from 32 bit to 16 bit er vise versa.
    : : Bitdog
    : : [/green]
    : :
    : Actually, the byte and word orders vary with different operating systems. There's a *nix utility to tell you which any given file is. Just search for little endian and big endian, you'll find out more.
    :
    Being bored, I actually did this, first result in excite is actually useful: http://www.rdrop.com/~cary/html/endian_faq.html
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories