注册 登录
编程论坛 汇编论坛

批处理制作汇编语言源程序自动到可执行文件

小勇12 发布于 2008-10-24 01:23, 2196 次点击
@echo off&&title code made by 小勇12
cls
echo this programe make "*.asm" into "*.exe"
echo when error is found ,you can revise it.
for /l %%i in (1,1,3) do echo.
if "%1"=="" goto usage
if "%1"=="/?" goto usage
if "%1"=="help" goto usage
pause
masm %1
if errorlevel 1 pause & edit %1
set dirp=%0
set p=%dirp:"=%
set lujing=%p:asmtoexe.bat=%
move *.obj %lujing%
set m="%1"
set l=%m:"=%
set str=%l:asm=obj%
echo %str%
pause
if exist %str% link16 %str%
move *.exe %lujing%
del %str%
goto eof
:usage
cls
echo usage: asmtoexe + file (include path)
echo default filename asmtoexe.bat
echo notice: please don't revise filename or can't run.
:eof
pause
4 回复
#2
zklhp2008-10-24 16:40
很有创意
#3
你们都要疼我哦2008-10-24 17:11
  原创?  

http://bbs.

[[it] 本帖最后由 你们都要疼我哦 于 2008-10-24 17:27 编辑 [/it]]
#4
zklhp2008-10-25 11:34
[bo][un]你们都要疼我哦[/un] 在 2008-10-24 17:11 的发言:[/bo]

  原创?  

http://bbs.


应该是转发的 不过很有意思 呵呵
#5
西北狼人2018-12-02 21:48
很有意思   
1