[Nasm-bugs] [Bug 3392441] New: in listing file, lines with rept give the hex address offset of the second repetition

no-reply at bugzilla-nasm.gorcunov.org no-reply at bugzilla-nasm.gorcunov.org
Tue Oct 3 12:06:10 PDT 2017


https://bugzilla.nasm.us/show_bug.cgi?id=3392441

            Bug ID: 3392441
           Summary: in listing file, lines with rept give the hex address
                    offset of the second repetition
           Product: NASM
           Version: 2.13.xx
          Hardware: All
                OS: All
            Status: OPEN
          Severity: minor
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: pushbx at 38.de
                CC: gorcunov at gmail.com, hpa at zytor.com, nasm-bugs at nasm.us
     Obtained from: Binary from nasm.us

$ nasm -v
NASM version 2.13 compiled on Apr 29 2017
$ cat test.asm
        cpu 8086
        org 0

        times 140h db 0
        times 2 dw 0
        times 1 dw 0
        dw 0

signature:
        dw 2638h
        align 16, db 0

        times 64 * 1024 db 0

signature2:
        dw 2638h
$ nasm test.asm -l test.lst
$ cat test.lst
     1                                          cpu 8086
     2                                          org 0
     3                                  
     4 00000001 00<rept>                        times 140h db 0
     5 00000142 0000<rept>                      times 2 dw 0
     6 00000144 0000                            times 1 dw 0
     7 00000146 0000                            dw 0
     8                                  
     9                                  signature:
    10 00000148 3826                            dw 2638h
    11 0000014B 00<rept>                        align 16, db 0
    12                                  
    13 00000151 00<rept>                        times 64 * 1024 db 0
    14                                  
    15                                  signature2:
    16 00010150 3826                            dw 2638h
$ 


Expected listing:

     1                                          cpu 8086
     2                                          org 0
     3                                  
     4 00000000 00<rept>                        times 140h db 0
     5 00000140 0000<rept>                      times 2 dw 0
     6 00000144 0000                            times 1 dw 0
     7 00000146 0000                            dw 0
     8                                  
     9                                  signature:
    10 00000148 3826                            dw 2638h
    11 0000014A 00<rept>                        align 16, db 0
    12                                  
    13 00000150 00<rept>                        times 64 * 1024 db 0
    14                                  
    15                                  signature2:
    16 00010150 3826                            dw 2638h

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.


More information about the Nasm-bugs mailing list