mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-09-22 10:43:39 -04:00
More matching and macrofication work. Improve some error and warning messages. Update some travis tests for better messages and added optimizations. Fix duplicated warning messages for the same out-of-range value problem. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
29 lines
261 B
NASM
29 lines
261 B
NASM
bits 64
|
|
default rel
|
|
|
|
%ifndef N
|
|
%define N 128
|
|
%endif
|
|
|
|
%macro tms 1+
|
|
%ifdef DO_TIMES
|
|
times N %1
|
|
%else
|
|
%assign %%n 0
|
|
%rep N
|
|
%%l %+ %%n:
|
|
%assign %%n %%n + 1
|
|
%1
|
|
%endrep
|
|
%endif
|
|
%endmacro
|
|
|
|
baz:
|
|
nop
|
|
bar:
|
|
tms jmp baz
|
|
tms jmp quux
|
|
quux:
|
|
|
|
ret
|