标题: BAT to make the MASM programme autom [打印本页]
作者: bailang110 时间: 2012-12-3 21:11 标题: BAT to make the MASM programme autom
- @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
复制代码
欢迎光临 批处理之家 (http://bbs.bathome.net/) |
Powered by Discuz! 7.2 |