mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
34eefd3803
Add the %map() function which can apply arguments to a macro from a list. Allow the user to specify the desired radix for an evaluated parameter. It doesn't make any direct difference, but can be nice for debugging or turning into strings. As part of this, split expand_one_smacro() into two parts: parameter parsing and macro expansion. This is a very straightforward splitting of two mostly unrelated pieces of functionality. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
7 lines
109 B
NASM
7 lines
109 B
NASM
bits 32
|
|
start:
|
|
nop
|
|
%warning We are at %hex($-$$)
|
|
;%warning We are at %hex($)
|
|
%warning We are at %hex($-$$)
|