I've got an hexdump of COM MSDOS 8086 file, and I'm trying to transform it to COM executable.
After looking around, I found a site1 that gives reasonable disassembly of the hexdump. Although, when I try to use that assembly generated code in a TASM, it doesn't build, and throw errors.
In contrast, I tried also to use IDA, and it does not seem to get the same assembly result as 1.
My questions are:
- Is there any other way that I'm missing in transforming hexdump into an executable COM file?
- The site gives me expressions like:
mov $0x400,%di
, but TASM only recognizemov di,400
. Is that a better way to translate the hexdumps into instructions that TASM will recognize?
BTW - The context is that I'm trying to solve an RE riddle, which I cannot post online (and I'm a pretty newbie in RE and assembly).
mov $0x400,%di
), which is odd, given that when I visit the site it gives back Intel syntax. Anyway, the difference is that AT&T syntax is somewhat more verbose and the source operand comes left of the comma as opposed to right of the comma with Intel's syntax.