使用MASM 5编译程序的便利批处理

DOS命令

@echo off
if {%1}=={} goto err
if not exist %1 goto err

:begin
masm %1,temp.obj,nul,nul > nul
link temp.obj,,nul,, > nul
temp
del temp.exe
goto end

:err
echo Error open %1.

:end


保存为as.bat,置于MASM目录下。

使用命令

as 1.asm

即可便捷编译并运行。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章