News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Help! Just trying to assemble+link a DOS proggie

Started by NoCforMe, March 02, 2024, 08:29:41 AM

Previous topic - Next topic

NoCforMe

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:
  • SUBSYSTEM type? Should it be console? native? something else?
  • Object format: COFF?

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.
32-bit code and Windows 7 foreva!

TimoVJL

May the source be with you

NoCforMe

32-bit code and Windows 7 foreva!