@if %1x == x goto usage
@echo @echo Assembling . . . > a.bat
@echo @c:\asm\as80 -i -x3 -l -n %1.asm >> a.bat
@echo @if errorlevel=3 goto error >> a.bat
@echo @goto good >> a.bat
@echo :error >> a.bat
@echo @echo ----------------------------------------------------------------------- >> a.bat
@echo @echo ³                 ERROR                        ERROR                  ³ >> a.bat
@echo @echo ----------------------------------------------------------------------- >> a.bat
@echo @goto quit >> a.bat
@echo :good >> a.bat
@echo @del %1.exe >> a.bat
@echo @ren %1.bin %1.exe >> a.bat
@echo :quit >> a.bat
@echo ÿ
@echo Project has been created.
@echo ÿ
@goto quit
:usage
@echo ÿ
@echo Usage:
@echo ÿ
@echo   CREATE.BAT PROJECT_NAME
@echo ÿ
:quit