Go to file
Cyrill Gorcunov 575d4289c9 preproc.c: Support multiple matches in paste_tokens
In mmacro params head TOK_NUM should be concat'ed with
tail TOK_NUM only, otherwise the weird construction like

    %define id1      1
    %define idid1    2
    %define TOK_NUM  1
    %define TOK_ID  id

    %macro m 2
        mov eax, 1%1id%2 ; this expands to 1idid1
                         ; where idid1 expands to 2
                         ; and then to 12
    %endmacro

    m TOK_ID, TOK_NUM

issue error.

N.B. I've checked nasm-0.98.39 and it compiles this macro
perfectly well, for the record.

Reported-by: nasm64developer@users.sf.net
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2010-10-07 01:16:26 +04:00
contrib contrib/MSVC6.txt: Add guide how to use nasm in MSVC6 2010-01-24 23:17:55 +03:00
doc BR3079777: Explain %00 in documentation 2010-10-05 18:41:11 +04:00
headers headers: Update year 2010-04-25 12:02:38 +04:00
inttypes
lcc
lib BR2979629: vsnprintf: Use nasm_malloc 2010-04-01 01:17:00 +04:00
macros New %use package "fp" 2010-05-07 13:42:09 -07:00
misc Get rid of misc/altreg.inc 2010-07-28 18:00:06 +04:00
Mkfiles openwcom.mak: drop /f from delete commands 2010-06-15 10:49:09 -07:00
nsis New NSIS script 2009-09-14 23:17:03 +04:00
output BR3079550: NASM crash on run-time for OMF output format 2010-10-02 01:21:00 +04:00
perllib phash: move sample function to the sample file 2010-09-22 14:02:28 -07:00
rdoff Use fputs instead of fprintf for plain strings 2009-08-13 15:07:59 +02:00
test More tests automation 2010-09-30 22:10:34 +04:00
.gitignore Rename filenames to 8.3 format 2010-06-15 10:47:16 -07:00
aclocal.m4
assemble.c assemble: add an OPT instruction flags for optimizing assembly only 2010-08-24 13:53:22 -07:00
assemble.h Add copyright headers to the *.c/*.h files in the main directory 2009-06-28 17:13:04 -07:00
AUTHORS AUTHORS: convert to UTF-8 2009-11-30 12:07:31 -08:00
autogen.sh
ChangeLog
CHANGES
compiler.h Add strlcpy() function 2009-08-10 15:59:34 -07:00
configure.in Add strlcpy() function 2009-08-10 15:59:34 -07:00
crc64.c Add copyright headers to the *.c/*.h files in the main directory 2009-06-28 17:13:04 -07:00
directiv.dat Rename filenames to 8.3 format 2010-06-15 10:47:16 -07:00
directiv.pl Rename filenames to 8.3 format 2010-06-15 10:47:16 -07:00
disasm.c BR3064376: ndisasm crash 2010-09-15 21:12:52 +04:00
disasm.h NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
eval.c eval.c: Use OPFLAG_FORWARD instead of opencoded number 2010-09-10 01:02:12 +04:00
eval.h NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
exprlib.c NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
float.c style cleanup 2009-10-13 19:41:37 +04:00
float.h Add copyright headers to the *.c/*.h files in the main directory 2009-06-28 17:13:04 -07:00
hashtbl.c hash_init: check for size being power of two 2009-11-06 22:00:37 +03:00
hashtbl.h Add copyright headers to the *.c/*.h files in the main directory 2009-06-28 17:13:04 -07:00
ilog2.c ilog2: optimize use of bsr for x86-64 2010-04-22 11:02:56 -07:00
insns.dat BR 3052618: handle segment register operations in 64-bit mode 2010-08-24 17:30:00 -07:00
insns.h assemble: add an OPT instruction flags for optimizing assembly only 2010-08-24 13:53:22 -07:00
insns.pl Optimize mov r64,imm 2010-08-24 14:08:16 -07:00
INSTALL
install-sh
labels.c labels.c: cleanup 2010-07-28 18:00:18 +04:00
labels.h labels.c: cleanup 2010-07-28 18:00:18 +04:00
LICENSE LICENSE: update year 2010-08-12 20:15:27 -07:00
listing.c Add support for one-byte relocations 2010-05-06 15:33:24 -07:00
listing.h NASM: relicense under the 2-clause BSD license 2009-07-06 11:09:11 -07:00
macros.pl Add copyright verbiage to Perl scripts; update LICENSE 2009-06-28 16:54:44 -07:00
Makefile.in Rename filenames to 8.3 format 2010-06-15 10:47:16 -07:00
mkdep.pl Add copyright verbiage to Perl scripts; update LICENSE 2009-06-28 16:54:44 -07:00
nasm.1 nasm.1 -- update contents 2009-07-31 14:30:33 +04:00
nasm.c Revert "Improve process_ea and introduce -OL" 2010-07-25 12:43:30 -07:00
nasm.h Optimize mov r64,imm 2010-08-24 14:08:16 -07:00
nasm.nsi nasm.nsi: use "delete recursively" specificator 2009-09-27 16:00:06 +04:00
nasm.spec.in spec: change License to BSD 2009-07-06 11:14:38 -07:00
nasmlib.c nasmlib.c: fix typo in nasm_init_malloc_error 2010-07-29 19:01:34 +04:00
nasmlib.h nasmlib: Rename elements() macro to ARRAY_SIZE 2010-06-03 23:17:21 +04:00
ndisasm.1
ndisasm.c Use fputs instead of fprintf for plain strings 2009-08-13 15:07:59 +02:00
opflags.h Optimize mov r64,imm 2010-08-24 14:08:16 -07:00
parser.c parser.c: Drop space line and use hex notation 2010-08-27 23:25:04 +04:00
parser.h Drop efunc and evaluate argument to parse_line() 2009-07-18 18:49:55 -07:00
phash.pl phash: move sample function to the sample file 2010-09-22 14:02:28 -07:00
pptok.dat preproc: add %ifenv 2010-07-13 12:00:58 -07:00
pptok.pl Add copyright verbiage to Perl scripts; update LICENSE 2009-06-28 16:54:44 -07:00
preproc.c preproc.c: Support multiple matches in paste_tokens 2010-10-07 01:16:26 +04:00
preproc.h Add copyright headers to the *.c/*.h files in the main directory 2009-06-28 17:13:04 -07:00
quote.c nasm_quote: Use memcpy only if length provided 2010-09-07 20:54:39 +04:00
quote.h Add copyright headers to the *.c/*.h files in the main directory 2009-06-28 17:13:04 -07:00
raa.c Remove function pointers in output, simplify error handling 2009-07-18 18:43:12 -07:00
raa.h Add copyright headers to the *.c/*.h files in the main directory 2009-06-28 17:13:04 -07:00
rbtree.c Add copyright headers to the *.c/*.h files in the main directory 2009-06-28 17:13:04 -07:00
rbtree.h Add copyright headers to the *.c/*.h files in the main directory 2009-06-28 17:13:04 -07:00
README README: add note to see the AUTHORS file 2010-01-06 20:56:11 -08:00
regs.dat Add copyright notices to other *.dat files 2009-06-28 16:58:10 -07:00
regs.pl move is_register helper to nasm.h 2010-07-25 11:09:56 +04:00
saa.c Remove function pointers in output, simplify error handling 2009-07-18 18:43:12 -07:00
saa.h Add copyright headers to the *.c/*.h files in the main directory 2009-06-28 17:13:04 -07:00
standard.mac sectalign: Implement on/off mode 2010-08-12 19:09:28 +04:00
stdscan.c stdscan.c: use TOKEN_EOS and string helpers 2009-10-31 20:05:50 +03:00
stdscan.h stdscan: switch to stdscan_get/set routines 2009-10-31 20:02:43 +03:00
strfunc.c Add copyright headers to the *.c/*.h files in the main directory 2009-06-28 17:13:04 -07:00
SubmittingPatches Add SubmittingPatches file 2010-10-03 21:02:08 +04:00
sync.c sync.c: Get sync points limit back 2009-12-22 23:42:03 +03:00
sync.h Add copyright headers to the *.c/*.h files in the main directory 2009-06-28 17:13:04 -07:00
syncfiles.pl Add copyright verbiage to Perl scripts; update LICENSE 2009-06-28 16:54:44 -07:00
tables.h opflags: more int32_t -> opflags_t conversions 2009-10-13 12:29:01 -07:00
TODO
tokens.dat Add copyright notices to other *.dat files 2009-06-28 16:58:10 -07:00
tokhash.pl Add copyright verbiage to Perl scripts; update LICENSE 2009-06-28 16:54:44 -07:00
ver.c Add copyright headers to the *.c/*.h files in the main directory 2009-06-28 17:13:04 -07:00
version NASM 2.10rc1 2010-09-30 22:45:57 +04:00
version.pl Add copyright verbiage to Perl scripts; update LICENSE 2009-06-28 16:54:44 -07:00

              NASM, the Netwide Assembler.

Many many developers all over the net respect NASM for what it is
- a widespread (thus netwide), portable (thus netwide!), very
flexible and mature assembler tool with support for many output
formats (thus netwide!!).

Now we have good news for you: NASM is licensed under the "simplified"
(2-clause) BSD license.  This means its development is open to even
wider society of programmers wishing to improve their lovely
assembler.

The NASM project is now situated at SourceForge.net, the most
popular Open Source development site on the Internet.

Visit our website at http://nasm.sourceforge.net/ and our
SourceForge project at http://sourceforge.net/projects/nasm/

See the file CHANGES for the description of changes between revisions,
and the file AUTHORS for a list of contributors.

                                                   With best regards,
                                                           NASM crew.