[Nasm-bugs] [Bug 3392462] New: simple macro fails to compile
no-reply at bugzilla-nasm.gorcunov.org
no-reply at bugzilla-nasm.gorcunov.org
Thu Feb 22 08:56:47 PST 2018
https://bugzilla.nasm.us/show_bug.cgi?id=3392462
Bug ID: 3392462
Summary: simple macro fails to compile
Product: NASM
Version: 2.13.xx
Hardware: PC
OS: Linux
Status: OPEN
Severity: major
Priority: Medium
Component: Assembler
Assignee: nobody at nasm.us
Reporter: creyes123 at yahoo.com
CC: gorcunov at gmail.com, hpa at zytor.com, nasm-bugs at nasm.us
Obtained from: Build from source archive using configure
section .text
%macro multipop 1−*
%rep %0
%rotate −1
pop %1
%endrep
%endmacro
global _start:function
_start:
multipop rax, rbx
>nasm -o test.o test.nasm
test.nasm:3: warning: too many default macro parameters [-w+macro-defaults]
test.nasm:12: warning: macro `multipop' exists, but not taking 2 parameters
[-w+macro-params]
test.nasm:12: error: parser: instruction expected
-------------------------
%macro multipop 2
%rep %0
%rotate −1
pop %1
%endrep
%endmacro
section .text
global _start:function
_start:
multipop rax, rbx
>nasm -o test.o test.nasm
test.nasm:12: error: (multipop:3) expression syntax error
test.nasm:5: ... from macro `multipop' defined here
test.nasm:12: error: (multipop:3) expression syntax error
test.nasm:5: ... from macro `multipop' defined here
--
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