1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-25 21:33:44 +00:00
C02/test/a1.bat
2019-11-20 01:09:22 -05:00

23 lines
494 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 -p %1.asm %1.obj %1.lst
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