@echo off REM Build moonlander.c with cc65 and optionally launch in VICE x64sc REM Requirements: cc65 on PATH, VICE x64sc on PATH or in GTK3VICE install dir set SRC=moonlander.c set PRG=moonlander.prg set VICE=x64sc echo Compiling %SRC% ... cl65 -t c64 -O -o %PRG% %SRC% if errorlevel 1 ( echo BUILD FAILED exit /b 1 ) echo Build OK: %PRG% if "%1"=="-run" ( echo Launching in VICE ... "%VICE%" -autostart %PRG% -warp -autostartprgmode 1 )