@echo off 
cd %2
\Utils\Vasm\vasmZ80_OldStyle_win32.exe %1  -chklabels -nocase -Dvasm=1 -DBuildSMS=1 -Fbin -o "\RelSMS\cart.sms" -L \RelSMS\Listing.txt
rem  -gbz80 -Fbin -o "\BldMSX\boot.bin" -L \RelSMS\Listing.txt
if not "%errorlevel%"=="0" goto Abandon
z:
cd \
\SMS_Go.bat
exit
:Abandon
if "%3"=="nopause" exit
pause
