@echo off
REM Assembles and links the current 16-bit MASM program.
REM 
REM Command-line options (unless otherwise noted, they are case-sensitive):
REM 
REM /nologo     Suppress the Microsoft logo display
REM -Zi         Include source code line information for debugging
REM -Fl         Generate a listing file (see page 88)
REM %1.asm      The name of the source file, passed on the command line
REM ************* The following lines can be customized:
PATH C:\Masm611;C:\Masm611\BIN;C:\Masm611\BINR
SET INCLUDE=C:\Masm611\INCLUDE
SET LIB=C:\Masm611\LIB
REM **************************** End of customized lines
REM Invoke ML.EXE (the assembler):
ML /nologo -Fl -Zi %1.asm
if errorlevel 1 goto terminate
REM Run the 16-bit linker, modified for Visual Studio.Net:
LINK %1
if errorlevel 1 goto terminate
REM Display all files related to this program:
DIR %1.*
:terminate
pause