Original Post
I'm trying to link a dos assembly code, and I get a weird error... I'm using a 16bit linker for dos applications, and the code is getting assemblied, but failed in linking. here is the code: and here is the linking error
.model tiny
.data
msg db "This is a 16-bit DOS .COM executable",13,10,"Hello World!",13,10,"$" ; The string must ends with a $
.code
.startup
mov dx,offset msg ; Get the address of our message in the DX
mov ah,9 ; Function 09h in AH means "WRITE STRING TO STANDARD OUTPUT"
int 21h ; Call the DOS interrupt (DOS function call)
mov ah,0 ; Call bios function "GET KEYSTROKE"
int 16h
.exit
end
Microsoft (R) Segmented Executable Linker Version 5.60.339 Dec 5 1994
Copyright (C) Microsoft Corp 1984-1993. All rights reserved.
LINK : fatal error L1093: and Settings\Ilankt\Desktop\Programming\WinAsmFull304b\masm32\bin\Link16 @D:\Documents and Settings\Ilankt\Desktop\Programming\Assembly Projects\test1\link.war : object file not found
Make finished. 1 error(s) occured.