使用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

即可便捷編譯並運行。

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