$ test$ cat test.asm DOSENTRYADJUSTSEGMENT equ 60h - 26h DOSENTRYADJUSTOFFSET equ DOSENTRYADJUSTSEGMENT * 16 DOSENTRYDEVICEBASE equ 10h %idefine PTR section DOSENTRY dw AUXDEV2 - DOSENTRYDEVICEBASE * 16, seg AUXDEV2 + DOSENTRYDEVICEBASE AUXDEV2: ENTRYPOINT: MOV WORD PTR [ENTRYPOINT+3], DOSENTRY - DOSENTRYADJUSTSEGMENT test$ ~/proj/nasmrc/nasm test.asm -fobj -o testrc.obj test$ ~/proj/nasm/nasm test.asm -fobj -o testnew.obj test$ ~/proj/omfdump/omfdump testrc.obj > testrc.txt test$ ~/proj/omfdump/omfdump testnew.obj > testnew.txt test$ diff -u testrc.txt testnew.txt --- testrc.txt 2025-09-03 16:27:09.961394125 +0200 +++ testnew.txt 2025-09-03 16:27:15.453514907 +0200 @@ -1,10 +1,9 @@ 80 THEADR 10 bytes, checksum 3F (valid) 0000: 08 74 65 73 74 2e 61 73-6d : .test.asm -88 COMENT 36 bytes, checksum E7 (valid) +88 COMENT 33 bytes, checksum 7E (valid) [NP=0 NL=0 UD=00] 00 Translator - 0002: 20 54 68 65 20 4e 65 74-77 69 64 65 20 41 73 73 : The Netwide Ass - 0012: 65 6d 62 6c 65 72 20 32-2e 31 36 2e 30 32 72 63 : embler 2.16.02rc - 0022: 32 : 2 + 0002: 1d 54 68 65 20 4e 65 74-77 69 64 65 20 41 73 73 : .The Netwide Ass + 0012: 65 6d 62 6c 65 72 20 32-2e 31 37 72 63 30 : embler 2.17rc0 96 LNAMES 11 bytes, checksum DF (valid) [0001] '' 0000: 00 08 44 4f 53 45 4e 54-52 59 : . @@ -17,9 +16,9 @@ 88 COMENT 4 bytes, checksum 91 (valid) [NP=0 NL=1 UD=00] A2 Link pass separator 0002: 01 : . -a0 LEDATA16 14 bytes, checksum A5 (valid) +a0 LEDATA16 14 bytes, checksum 7A (valid) segment 'DOSENTRY', offset 0000 - 0000: 04 ff 10 00 c7 06 07 00-c6 ff : .......... + 0000: 04 ff 00 00 c7 06 07 00-00 00 : .......... 9c FIXUPP16 17 bytes, checksum D7 (valid) FIXUP segment-relative, type 1 (16-bit offset) record offset 0000 test$ ~/proj/nasmtest/21c977e717d7ecea03275810dcc11c082d4f20f0/nasm test.asm -fobj -o test21c9.obj test$ ~/proj/nasmtest/7d5e549d6385ffef050d830317d7663e88d2986e/nasm test.asm -fobj -o test7d5e.obj test$ ~/proj/omfdump/omfdump test21c9.obj 80 THEADR 10 bytes, checksum 3F (valid) 0000: 08 74 65 73 74 2e 61 73-6d : .test.asm 88 COMENT 36 bytes, checksum E5 (valid) [NP=0 NL=0 UD=00] 00 Translator 0002: 20 54 68 65 20 4e 65 74-77 69 64 65 20 41 73 73 : The Netwide Ass 0012: 65 6d 62 6c 65 72 20 32-2e 31 36 2e 30 32 72 63 : embler 2.16.02rc 0022: 34 : 4 96 LNAMES 11 bytes, checksum DF (valid) [0001] '' 0000: 00 08 44 4f 53 45 4e 54-52 59 : . [0002] 'DOSENTRY' 0001: 08 44 4f 53 45 4e 54 52-59 : .DOSENTRY 98 SEGDEF16 7 bytes, checksum 2B (valid) BYTE (A1) PUBLIC (C2) USE16 size 000a name 'DOSENTRY' 0000: 28 0a 00 02 01 01 : (..... 88 COMENT 4 bytes, checksum 91 (valid) [NP=0 NL=1 UD=00] A2 Link pass separator 0002: 01 : . a0 LEDATA16 14 bytes, checksum 7A (valid) segment 'DOSENTRY', offset 0000 0000: 04 ff 00 00 c7 06 07 00-00 00 : .......... 9c FIXUPP16 17 bytes, checksum D7 (valid) FIXUP segment-relative, type 1 (16-bit offset) record offset 0000 frame method F5 (TARGET index) target method T4 (SEGDEF) index 0001 'DOSENTRY' 0000: c4 00 54 01 c8 02 54 01-c4 06 54 01 c8 08 54 01 : ..T. FIXUP segment-relative, type 2 (16-bit segment) record offset 0002 frame method F5 (TARGET index) target method T4 (SEGDEF) index 0001 'DOSENTRY' 0004: c8 02 54 01 c4 06 54 01-c8 08 54 01 : ..T. FIXUP segment-relative, type 1 (16-bit offset) record offset 0006 frame method F5 (TARGET index) target method T4 (SEGDEF) index 0001 'DOSENTRY' 0008: c4 06 54 01 c8 08 54 01- : ..T. FIXUP segment-relative, type 2 (16-bit segment) record offset 0008 frame method F5 (TARGET index) target method T4 (SEGDEF) index 0001 'DOSENTRY' 000c: c8 08 54 01 : ..T. 8a MODEND16 2 bytes, checksum 74 (valid) 0000: 00 : . test$ ~/proj/omfdump/omfdump test7d5e.obj 80 THEADR 10 bytes, checksum 3F (valid) 0000: 08 74 65 73 74 2e 61 73-6d : .test.asm 88 COMENT 36 bytes, checksum E5 (valid) [NP=0 NL=0 UD=00] 00 Translator 0002: 20 54 68 65 20 4e 65 74-77 69 64 65 20 41 73 73 : The Netwide Ass 0012: 65 6d 62 6c 65 72 20 32-2e 31 36 2e 30 32 72 63 : embler 2.16.02rc 0022: 34 : 4 96 LNAMES 11 bytes, checksum DF (valid) [0001] '' 0000: 00 08 44 4f 53 45 4e 54-52 59 : . [0002] 'DOSENTRY' 0001: 08 44 4f 53 45 4e 54 52-59 : .DOSENTRY 98 SEGDEF16 7 bytes, checksum 2B (valid) BYTE (A1) PUBLIC (C2) USE16 size 000a name 'DOSENTRY' 0000: 28 0a 00 02 01 01 : (..... 88 COMENT 4 bytes, checksum 91 (valid) [NP=0 NL=1 UD=00] A2 Link pass separator 0002: 01 : . a0 LEDATA16 14 bytes, checksum A5 (valid) segment 'DOSENTRY', offset 0000 0000: 04 ff 10 00 c7 06 07 00-c6 ff : .......... 9c FIXUPP16 17 bytes, checksum D7 (valid) FIXUP segment-relative, type 1 (16-bit offset) record offset 0000 frame method F5 (TARGET index) target method T4 (SEGDEF) index 0001 'DOSENTRY' 0000: c4 00 54 01 c8 02 54 01-c4 06 54 01 c8 08 54 01 : ..T. FIXUP segment-relative, type 2 (16-bit segment) record offset 0002 frame method F5 (TARGET index) target method T4 (SEGDEF) index 0001 'DOSENTRY' 0004: c8 02 54 01 c4 06 54 01-c8 08 54 01 : ..T. FIXUP segment-relative, type 1 (16-bit offset) record offset 0006 frame method F5 (TARGET index) target method T4 (SEGDEF) index 0001 'DOSENTRY' 0008: c4 06 54 01 c8 08 54 01- : ..T. FIXUP segment-relative, type 2 (16-bit segment) record offset 0008 frame method F5 (TARGET index) target method T4 (SEGDEF) index 0001 'DOSENTRY' 000c: c8 08 54 01 : ..T. 8a MODEND16 2 bytes, checksum 74 (valid) 0000: 00 : . test$ ~/proj/omfdump/omfdump test21c9.obj > test21c9.txt test$ ~/proj/omfdump/omfdump test7d5e.obj > test7d5e.txt test$ diff -u testrc.txt test7d5e.txt --- testrc.txt 2025-09-03 16:27:09.961394125 +0200 +++ test7d5e.txt 2025-09-03 16:29:45.500812211 +0200 @@ -1,10 +1,10 @@ 80 THEADR 10 bytes, checksum 3F (valid) 0000: 08 74 65 73 74 2e 61 73-6d : .test.asm -88 COMENT 36 bytes, checksum E7 (valid) +88 COMENT 36 bytes, checksum E5 (valid) [NP=0 NL=0 UD=00] 00 Translator 0002: 20 54 68 65 20 4e 65 74-77 69 64 65 20 41 73 73 : The Netwide Ass 0012: 65 6d 62 6c 65 72 20 32-2e 31 36 2e 30 32 72 63 : embler 2.16.02rc - 0022: 32 : 2 + 0022: 34 : 4 96 LNAMES 11 bytes, checksum DF (valid) [0001] '' 0000: 00 08 44 4f 53 45 4e 54-52 59 : . test$