@echo off setlocal where cl65 >nul 2>nul if errorlevel 1 ( echo cl65 was not found on PATH. echo Install cc65 or add its bin directory to PATH. exit /b 1 ) cl65 -t c64 -DMOUSE_DRIVER=c64_1351_mou -O -o mouse_driver_demo.prg mouse_driver_demo.c if errorlevel 1 ( echo build failed. exit /b 1 ) echo built mouse_driver_demo.prg successfully.