- @echo off
- ::close echo
- cls
- ::clean screen
- echo This programme is to make the MASM programme autom
- ate
- ::display info
- echo Edit by CODERED
- ::display info
- echo Mailto me : qqkiller***@sina.com
- ::display info
- if "%1"=="" goto usage
- ::if input without paramater goto usage
- if "%1"=="/?" goto usage
- ::if paramater is "/?" goto usage
- if "%1"=="help" goto usage
- ::if paramater is "help" goto usage
- pause
- ::pause to see usage
- masm %1.asm
- ::assemble the .asm code
- if errorlevel 1 pause & edit %1.asm
- ::if error pause to see error msg and edit the code
- link %1.obj & %1
- ::else link the .obj file and execute the .exe file
- :usage
- ::set usage
- echo Usage: This BAT file name [asm file name]
- echo Default BAT file name is START.BAT
- ::display usage
复制代码
|