[Nasm-bugs] [Bug 3392826] NASM Listing address defect if [org VALUE] not zero

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Tue Dec 6 08:10:34 PST 2022


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

Erdogan Tan <erdogantan at singlix.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |erdogantan at singlix.com

--- Comment #3 from Erdogan Tan <erdogantan at singlix.com> ---
Comment on attachment 411862
  --> https://bugzilla.nasm.us/attachment.cgi?id=411862
Listing file for Retro DOS v4.0 kernel draft (MSDOS 5.0 MSDOS.SYS)

SAMPLE: nasm listing of deneme.asm file..
(line 6 must show address 0100h, not 0.. and [0600] on line 8 must be [0601])

     1                                  
     2                                  section .text
     3                                  
     4                                          [org 100h]
     5                                  start:
     6 00000000 EB0F                            jmp     kod3
     7                                  kod1ptr:
     8 00000002 [0600]                          dw      kod1
     9                                  kod0:
    10 00000004 EB0B                            jmp     kod3
    11                                  kod1:
    12 00000006 8B36[0D00]                      mov     si, [deneme3]
    13                                  kod2:
    14 0000000A AC                              lodsb
    15 0000000B 3C2E                            cmp     al, '.'
    16 0000000D 75FB                            jne     short kod2
    17                                          ;times  130 db 90h
    18 0000000F EBF3                            jmp     kod0
    19                                  kod3:
    20 00000011 FF26[0200]                      jmp     word [kod1ptr]
    21                                  
    22                                  section .data
    23                                  
    24 00000000 [0200]                  deneme0: dw deneme1
    25 00000002 [0400]                  deneme1: dw deneme2
    26                                  deneme2:
    27 00000004 64656E656D652E2E2E              db 'deneme...'
    28                                  
    29                                          burasi equ $
    30                                  deneme3:
    31 0000000D [0D00]                          dw burasi
    32 0000000F 0D000A000000                    dw 0Dh, 0Ah, 0
    33                                  
    34

-- 
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