1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-28 10:51:14 +00:00
C02/test/a1.bat

23 lines
539 B
Batchfile

@ECHO OFF
REM Compile and Assemble Program for Apple-1
IF EXIST %1.c02 GOTO COMPILE
ECHO File %1.c02 not found
EXIT /B
:COMPILE
ECHO Compiling File %1.c02
..\c02.exe -h apple1 -s apple1 %1 >%1.dbg
IF ERRORLEVEL 1 EXIT /B
ECHO Assembling File %1.asm
..\a02 -d -p -i "../include ../include/apple1" %1.asm %1.obj %1.lst >%1.out
IF ERRORLEVEL 1 EXIT /B
ECHO Converting Object File
python ..\util\bin2asc.py %1
IF ERRORLEVEL 1 EXIT /B
DEL %1.obj
ECHO Copying ASCII File
COPY %1.asc C:\Programs\pom1\asc\%1.asc