Metropoli BBS
VIEWER: nasm2obj.bat MODE: TEXT (ASCII)
@echo off
if "%1"=="" goto usage
if exist %1 goto usage
if exist %1.obj del %1.obj
if exist *.tmp del *.tmp

nasm -o nasmtest.obj -f obj %2 %3 %4 %5 %6 %7 %8 %9 %1.asm
if not exist %1.obj goto end
goto done

:usage
echo Usage : NASM2OBJ file [...] 
echo   file - file to compile to OBJ (do not give .ASM extension)
echo   [...] - options to give to NASM
echo.

:done
if exist *.tmp del *.tmp

:end

[ RETURN TO DIRECTORY ]