[Nasm-bugs] [Bug 3392462] simple macro fails to compile

no-reply at bugzilla-nasm.gorcunov.org no-reply at bugzilla-nasm.gorcunov.org
Wed Mar 7 05:56:15 PST 2018


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

C. Masloch <pushbx at 38.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pushbx at 38.de

--- Comment #1 from C. Masloch <pushbx at 38.de> ---
The code you added to your description uses the codepoint U+2212 MINUS SIGN
instead of (ASCII-range) U+002D HYPHEN-MINUS. This causes your errors. (Also,
it needs "bits 64" to actually allow the test case to assemble without errors.)
The following test case works for me:

$ cat test.asm 
bits 64

%macro multipopx 1-*
    %rep %0
        %rotate -1
        pop %1
    %endrep
%endmacro

        multipopx       rax, rbx


%macro multipop2 2
    %rep %0
        %rotate -1
        pop %1
    %endrep
%endmacro

        multipop2       rax, rbx
$ nasm -v
NASM version 2.13.03 compiled on Feb  7 2018
$ nasm -o test.bin -l test.lst -f bin test.asm 
$

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