[Nasm-bugs] [Bug 3392827] 'pops' bug for example: pops ds makes an opcode 3Eh instead of giving syntax error about 'pop' inst.

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Mon Dec 26 12:19:28 PST 2022


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

--- Comment #5 from H. Peter Anvin <hpa at zytor.com> ---
So I can think of several subcases that probably want separate warnings; your
patch has some of them but not all:

1. Colonless label on empty row (already there)
2. Colonless label before naked prefix
3. Colonless label before instruction (possibly prefixed)
4. Colonless label before pseudo-op
5. Colonless label before macro

2 and 3 could be enabled by default; 4 and 5 probably need to start off because
people following MASM conventions would not use colons there.

There is also the option of having a warning for a colonless label preceded by
whitespace.

Macros could be allowed to have override options to treat as one of the other
options.

This also reminds me that I have been meaning to add a mechanism for having a
macro capture prefixes as well as labels.

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