[Nasm-bugs] [Bug 3392627] New: %rep listing swallows %[...] brackets
noreply-nasm at dev.nasm.us
noreply-nasm at dev.nasm.us
Thu Oct 24 06:25:33 PDT 2019
https://bugzilla.nasm.us/show_bug.cgi?id=3392627
Bug ID: 3392627
Summary: %rep listing swallows %[...] brackets
Product: NASM
Version: 2.15 (development)
Hardware: All
OS: All
Status: OPEN
Severity: minor
Priority: Medium
Component: Assembler
Assignee: nobody at nasm.us
Reporter: pushbx at ulukai.org
CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
hpa at zytor.com, nasm-bugs at nasm.us
Obtained from: Built from git using configure
This is the same in
https://repo.or.cz/nasm.git/commitdiff/e91f5cc1322eed4da0de81656276e021bf352c3d
as well as older NASM versions. Note how the listing for the %rep expansions
lists "dataii" where it actually processes "data%[ii]".
$ cat test.asm
%assign ii 1
data%[ii]:
%assign ii ii + 1
%rep 1
data%[ii]:
%assign ii ii + 1
%endrep
%rep 2
data%[ii]:
%assign ii ii + 1
%endrep
$ nasm -v
NASM version 2.15rc0 compiled on Oct 24 2019
$ nasm test.asm -l test.lst
$ cat test.lst
1
2 %assign ii 1
3 data%[ii]:
4 %assign ii ii + 1
5
6 %rep 1
7 data%[ii]:
8 %assign ii ii + 1
9 %endrep
7 <1> dataii:
8 <1> %assign ii ii + 1
10
11 %rep 2
12 data%[ii]:
13 %assign ii ii + 1
14 %endrep
12 <1> dataii:
13 <1> %assign ii ii + 1
14 <1> dataii:
15 <1> %assign ii ii + 1
$ oldnasm -v
NASM version 2.12.02 compiled on Aug 10 2019
$ oldnasm test.asm -l test.lst
$ cat test.lst
1
2 %assign ii 1
3 data%[ii]:
4 %assign ii ii + 1
5
6 %rep 1
7 data%[ii]:
8 %assign ii ii + 1
9 %endrep
9 <1> dataii:
9 <1> %assign ii ii + 1
10
11 %rep 2
12 data%[ii]:
13 %assign ii ii + 1
14 %endrep
14 <1> dataii:
14 <1> %assign ii ii + 1
14 <1> dataii:
14 <1> %assign ii ii + 1
$
--
You are receiving this mail because:
You are watching all bug changes.
You are on the CC list for the bug.
More information about the Nasm-bugs
mailing list