nasm - disassembly issue: wrong result -
I want to separate a very simple line of binary code (.com file) with nasm but I do not expect output The main code is:
mov ax, 4 ax ax mouse ax, 7 push 9 But there is output in nasm: (and I also tried To use IDA Pro and this was the same)
Add 00000000 B80400 mov ax, 0x4 00000003 B80750 mov ax, 5007 00000006 006809 [bx + c + 0x 9], add 00000009 0000 [BX + SI], Al As you can see that binary code is correct, just the interpretation is wrong (I think because of the previous 3 extra zero bytes which I am due to any other program or maybe something else !)
How do I leave the last zero in the binary code? Or any kind of nasm to interpret the code as I want?
thanks
B80750 is actually mov ax, 0x5007 there is nothing wrong is.
Anyway, the given code piece should be collected in something like this:
00000000 B80400 mov ax, 0x4 00000003 50 push ax axis 00000004 B80700 mov ax, 0x7 00000007 6A09 push Byte + 0x9 If you have collected the .com file then you are doing it wrong.
Comments
Post a Comment