[Nasm-bugs] [Bug 3392626] New: %rep listing line numbering should reset after every iteration
noreply-nasm at dev.nasm.us
noreply-nasm at dev.nasm.us
Thu Oct 24 06:19:17 PDT 2019
https://bugzilla.nasm.us/show_bug.cgi?id=3392626
Bug ID: 3392626
Summary: %rep listing line numbering should reset after every
iteration
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 with
https://repo.or.cz/nasm.git/commitdiff/e91f5cc1322eed4da0de81656276e021bf352c3d
$ cat test.asm
; line 1
%rep 3 ; line 2
; line 3
db 26h ; line 4
%endrep ; line 5
; line 6
$ nasm -v
NASM version 2.15rc0 compiled on Oct 24 2019
$ nasm test.asm -l test.lst
$ cat test.lst
1 ; line 1
2 %rep 3 ; line 2
3 ; line 3
4 db 26h ; line 4
5 %endrep ; line 5
3 <1>
4 00000000 26 <1> db 26h
5 <1>
6 00000001 26 <1> db 26h
7 <1>
8 00000002 26 <1> db 26h
6 ; line 6
$
Note how the first iteration's db is listed as line 4 (matching the true source
line from where the %rep content is defined), but the subsequent iterations
list db as line 6 and 8 respectively. After the %rep is done processing, the
line number correctly resets to 6.
In older NASM, the line number stays at that of the %endrep line:
$ oldnasm -v
NASM version 2.12.02 compiled on Aug 10 2019
$ oldnasm test.asm -l test.lst
$ cat test.lst
1 ; line 1
2 %rep 3 ; line 2
3 ; line 3
4 db 26h ; line 4
5 %endrep ; line 5
5 <1>
5 00000000 26 <1> db 26h
5 <1>
5 00000001 26 <1> db 26h
5 <1>
5 00000002 26 <1> db 26h
6 ; line 6
$
--
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