[Nasm-bugs] [Bug 3392639] New: String pointers do not work correctly

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Mon Dec 23 14:43:14 PST 2019


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

            Bug ID: 3392639
           Summary: String pointers do not work correctly
           Product: NASM
           Version: 2.14.xx
          Hardware: PC
                OS: Windows
            Status: OPEN
          Severity: normal
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: mortafilnlg at gmail.com
                CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
                    hpa at zytor.com, nasm-bugs at nasm.us
     Obtained from: Binary from nasm.us

When I use a string defined as a variable, NASM translates the pointer
incorrectly without any evidence of what is happening. Simply, this code:

test_text db "hello world!"
mov si, test_text

Returns this binary:
BE DF 20            MOV SI, 0x02DF

I have tried typing test_text after the MOV instruction, and for some reason
the number keeps being almost the same, only changing the least significant hex
number.

-- 
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