I have been away from asm x86 for years and returning back however I am having trouble building a very simple file, so I am wondering if someone can clear me out. Again, sorry if it has been posted before (spamming), if similar thread available, may be put it here.
First I installed masm32 from this site and used link16 to linkage which is always how I did before if I remember.
here is the code and batch build files:
Some how I am havin L1101 with following error during link:
From output i can see obj file is generated successfully but linker is having issue with L1101 invalid object module. Any help is appreciated! THanks.,
==LINK ERROR===
Z:\sw.dev>ml /c /Fm /Fl /coff asmfile.asm
Microsoft ® Macro Assembler Version 9.00.21022.08
Copyright © Microsoft Corporation. All rights reserved.
Assembling: asmfile.asm
Z:\sw.dev>link16 asmfile.obj, asmfile.exe,,,,
Microsoft ® Segmented Executable Linker Version 5.60.339 Dec 5 1994
Copyright © Microsoft Corp 1984-1993. All rights reserved.
asmfile.obj : fatal error L1101: invalid object module
Object file offset: 1 Record type: 4c
==ASM FILE===
.386
.model flat, stdcall
sta segment stack
db 100h dup(0)
sta ends
data segment
db 100h dup(0)
data ends
code segment
assume cs:code, ds:code,ss:sta
_start:
mov ax, 200h
; mov ax, code
; mov ds, ax
; mov dx, offset boker
; mov ah, 8
; int 21h
; mov ax, 4c00h
; int 21h
; boker db 'hello world!$'
code ends
end _start
==BATCH FILE===
del *.obj
del *.exe
del *.lst
ml /c /Fm /Fl /coff asmfile.asm
link16 asmfile.obj, asmfile.exe,,,,