[Nasm-bugs] [Bug 3392590] New: [Feature request] Warn for obsolete instructions MOV to CS, POP to CS

noreply-nasm at gorcunov.org noreply-nasm at gorcunov.org
Fri Aug 9 02:40:13 PDT 2019


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

            Bug ID: 3392590
           Summary: [Feature request] Warn for obsolete instructions MOV
                    to CS, POP to CS
           Product: NASM
           Version: 2.15 (development)
          Hardware: All
                OS: All
            Status: OPEN
          Severity: enhancement
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: pushbx at 38.de
                CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
                    hpa at zytor.com, nasm-bugs at nasm.us
     Obtained from: Unknown

I think
https://repo.or.cz/nasm.git/commit/41bb8a8114042531e7831cbf2155185ae039297c is
good in itself, but even better would be an error/warning whenever MOV to CS or
POP to CS is assembled. Before this commit, both are accepted silently
regardless of the CPU directive. After this patch, POP to CS gives the warning,
but only if the CPU directive did not specify 8086 (before any CPU directive or
eg after CPU 186).

I think a default-on warning for MOV to CS and POP to CS is warranted. And I
want it to be enabled even when CPU 8086 is selected; I want my programs to be
8086-clean, but not depend on any 8086-specific instructions. Whenever I have
actually used MOV to CS or POP to CS, it was in error.

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