[Nasm-bugs] [Bug 3392509] Wrong content in binary output and listing output

noreply-nasm at gorcunov.org noreply-nasm at gorcunov.org
Sat Aug 25 03:34:38 PDT 2018


https://bugzilla.nasm.us/show_bug.cgi?id=3392509

zenith432 at users.sourceforge.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|OPEN                        |RESOLVED

--- Comment #1 from zenith432 at users.sourceforge.net ---
This is not a bug.  The default format is -f bin.  The code is based at 0. 
0xfa is an absolute target address.  0xf8 is the relative displacement from the
end of the instruction (0x2) to the target (0xfa).
The binary output is correct.
The listing file shows the absolute address in parenthesis instead of the
relative displacement in the actual machine code.  If you want to see both, run
ndisasm on the binary output.
If the format of the listing file bothers you, reopen the bug about that but
they may not want to not change it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.


More information about the Nasm-bugs mailing list