The MASM Forum

Miscellaneous => 16 bit DOS Programming => Topic started by: NoCforMe on March 02, 2024, 08:29:41 AM

Title: Help! Just trying to assemble+link a DOS proggie
Post by: NoCforMe on March 02, 2024, 08:29:41 AM
I can't believe I'm having problems with this, something I used to do hundreds of times.

Just trying to create a test program that'll run under DOS (using vDOS). Trying to create an .exe (I guess my next move would be to try for a .com program). I have stack and code segments, no data seg. (don't need one). I'm not even referencing the segments at all, just using PUSH CS/POP DS to access my data in the code seg., so I'm not sure why it's complaining about fixups. Assembles no problem, but I'm getting link errors:

fatal error LNK1190: invalid fixup found, type 0x0001

Something to do with segments, no doubt.

I'm using link.exe version 5.12.8078. Pretty sure the linker I used to use years ago was much older than that. Is this linker even capable of making an old-style DOS-compatible program?

Not sure about the following:

I've tried various combinations, nothing works. When I left off the /coff option from ml.exe (assembler), I got a warning:
warning LNK4033: converting object format from OMF to COFF
Not sure what "OMF" is.

Code is quite long, so not ready to post it just yet, but will do if needed.
Title: Re: Help! Just trying to assemble+link a DOS proggie
Post by: TimoVJL on March 02, 2024, 09:08:09 AM
masm32 have link16.exe for DOS programs.
Title: Re: Help! Just trying to assemble+link a DOS proggie
Post by: NoCforMe on March 02, 2024, 10:06:10 AM
Thanks, Timo; that did the trick.