# HG changeset patch # User Paper <37962225+mrpapersonic@users.noreply.github.com> # Date 1616630248 14400 # Node ID 002a5dbce627dfe55e453a8084e6de54b23fdebe # Parent b3d9104ad918a018a719c0a6baf94bbd40cff417 Add mmltonsf.bat committer: GitHub diff -r b3d9104ad918 -r 002a5dbce627 mmltonsf.bat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mmltonsf.bat Wed Mar 24 19:57:28 2021 -0400 @@ -0,0 +1,30 @@ +@echo off + +if "%1" == "" ( +echo usage: compile.bat ^ +exit /b +) + +REM - Compile MML +del /f effect.h +ppmckc.exe -i "%1" +if not exist "effect.h" ( +echo ppmckc ERROR +exit /b +) + +REM - Assemble +del /f ppmck.nes +nesasm -s -raw ppmck.asm +if not exist "ppmck.nes" ( +echo nesasm ERROR +del /f "%~n1" effect.h define.inc +exit /b +) + +REM - Move files and such +move /y ppmck.nes "%~n1.nsf" +echo %~n1.nsf written + +REM - Cleanup +del /f "%~n1".h effect.h define.inc \ No newline at end of file