2018-08-19 22:24:02 +00:00
|
|
|
@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
|
2018-09-17 00:53:34 +00:00
|
|
|
..\c02.exe -h apple1 -s apple1 %1 >%1.dbg
|
2018-08-19 22:24:02 +00:00
|
|
|
IF ERRORLEVEL 1 EXIT /B
|
|
|
|
|
|
|
|
ECHO Assembling File %1.asm
|
2020-10-19 19:42:10 +00:00
|
|
|
..\a02 -d -p -i "../include ../include/apple1" %1.asm %1.obj %1.lst >%1.out
|
2018-08-19 22:24:02 +00:00
|
|
|
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
|