Using Visual Studio 2008 to Assemble, Link, Debug, and Execute MASM 6.11 Assembly Code

Posted by Kreychek on Stack Overflow See other posts from Stack Overflow or by Kreychek
Published on 2008-09-21T22:42:42Z Indexed on 2010/03/08 17:21 UTC
Read the original article Hit count: 881

I would like to use Visual Studio 2008 to the greatest extent possible while effectively compiling/linking/building/etc code as if all these build processes were being done by the tools provided with MASM 6.11. The exact version of MASM does not matter, so long as it's within the 6.x range, as that is what my college is using to teach 16-bit assembly.

I have done some research on the subject and have come to the conclusion that there are several options:

  1. Reconfigure VS to call the MASM 6.11 executables with the same flags, etc as MASM 6.11 would natively do.
  2. Create intermediary batch file(s) to be called by VS to then invoke the proper commands for MASM's linker, etc.
  3. Reconfigure VS's built-in build tools/rules (assembler, linker, etc) to provide an environment identical to the one used by MASM 6.11.

Option (2) was brought up when I realized that the options available in VS's "External Tools" interface may be insufficient to correctly invoke MASM's build tools, thus a batch file to interpret VS's strict method of passing arguments might be helpful, as a lot of my learning about how to get this working involved my manually calling ML.exe, LINK.exe, etc from the command prompt.

Below are several links that may prove useful in answering my question. Please keep in mind that I have read them all and none are the actual solution. I can only hope my specifying MASM 6.11 doesn't prevent anyone from contributing a perhaps more generalized answer.

Similar method used to Option (2), but users on the thread are not contactable:
(also, I have my doubts about the necessity of an intermediary batch file)

Out of date explanation to my question:

Probably the closest thing I've come to a definitive solution, but refers to a suite of tools from something besides MASM, also uses a batch file:

I apologize if my terminology for the tools used in each step of the code -> exe process is off, but since I'm trying to reproduce the entirety of steps in between completion of writing the code and generating an executable, I don't think it matters much.

© Stack Overflow or respective owner

Related posts about visual-studio

Related posts about visual-studio-2008