The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => 16 bit DOS Programming => Topic started by: conmuacuoi on July 20, 2006, 09:25:31 AM

Title: Please help me !
Post by: conmuacuoi on July 20, 2006, 09:25:31 AM
See my source code is

.model tiny
.code
.startup
   mov dx, OFFSET msg
   mov ah, 9
   int 21h
.exit
.data
msg DB "Hello out there!", 13, 10, '$'
end

I wants to display an simple messages : "Hello out there !"

I compiler success but when I link obj file then occur error:

Compiler:

C:\>c:\masm32\bin\ml /c /coff lession01.asm
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997.  All rights reserved.

Assembling: lession01.asm

C:\>
Link

C:\>c:\masm32\bin\Link /SUBSYSTEM:WINDOWS /OPT:NOREF lession01.obj
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

lession01.obj : fatal error LNK1190: invalid fixup found, type 0x0001

C:\>

please show me this error and solution .

Many thanks!
Title: Re: Please help me !
Post by: Vortex on July 20, 2006, 09:35:59 AM
C:\>c:\masm32\bin\ml /c /coff lession01.asm

You should remove the /coff switch as that version of MS link accepts only OMF object code.
Title: Re: Please help me !
Post by: japheth on July 20, 2006, 10:21:24 AM

and use an OMF linker!

Good ones are OPTLINK from Digital Mars or VALX (CC386).

VALX has become the most powerful one recently: http://members.tripod.com/~ladsoft/dos/valx.zip

just enter:

ml -c test.asm
valx test.obj;

and you will get what you want.
Title: Re: Please help me !
Post by: conmuacuoi on August 17, 2006, 05:50:37 AM
Thanks for all !
I 'll try to compiler again .