title: Using Visual Studio 2008 to Assemble, Link, Debug, and Execute MASM 6.11 Assembly Code
body: <p>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.</p>
  
  <p>I have done some research on the subject and have come to the conclusion that there are several options:</p>
  
  <ol>
  <li>Reconfigure VS to call the MASM 6.11 executables with the same flags, etc as MASM 6.11 would natively do.</li>
  <li>Create intermediary batch file(s) to be called by VS to then invoke the proper commands for MASM's linker, etc.</li>
  <li>Reconfigure VS's built-in build tools/rules (assembler, linker, etc) to provide an environment identical to the one used by MASM 6.11.</li>
  </ol>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>Similar method used to Option (2), but users on the thread are not contactable:<br>
  <a href="http://www.codeguru.com/forum/archive/index.php/t-284051.html" rel="nofollow noreferrer">http://www.codeguru.com/forum/archive/index.php/t-284051.html</a><br>
  (also, I have my doubts about the necessity of an intermediary batch file)</p>
  
  <p>Out of date explanation to my question:<br>
  <a href="http://www.cs.fiu.edu/~downeyt/cop3402/masmaul.html" rel="nofollow noreferrer">http://www.cs.fiu.edu/~downeyt/cop3402/masmaul.html</a></p>
  
  <p>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:<br>
  <a href="http://www.kipirvine.com/asm/gettingStarted/index.htm#16-bit" rel="nofollow noreferrer">http://www.kipirvine.com/asm/gettingStarted/index.htm#16-bit</a></p>
  
  <p>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.</p>