Changed Batch Files in test/ to use a02.exe

This commit is contained in:
Curtis F Kaylor 2019-11-18 01:38:23 -05:00
parent 14d9409e5d
commit a56007da8f
6 changed files with 69 additions and 13 deletions

14
test/a02.bat Normal file
View File

@ -0,0 +1,14 @@
@ECHO OFF
IF "%1" == "" (
ECHO Usage: %0 a02file
GOTO :EXIT
)
SET ASMEXT=""
IF EXIST %1.a02 SET ASMEXT=a02
IF EXIST %1.asm SET ASMEXT=asm
IF "%ASMEXT%" == "" (
ECHO Assembly File %1 Not Found
GOTO :EXIT
)
ECHO Assembling File %1.%ASMEXT%
..\a02.exe %1.%ASMEXT% %1.bin %1.lst >%1.out

10
test/c02.bat Normal file
View File

@ -0,0 +1,10 @@
@ECHO OFF
IF EXIST %1.c02 GOTO COMPILE
ECHO File %1.c02 not found
GOTO EOF
:COMPILE
ECHO Compiling File %1.c02
..\c02.exe -h header %1 >%1.dbg
:EOF

View File

@ -1,18 +1,20 @@
@REM Compile and Run C02 Program for C64
@ECHO OFF
IF EXIST %1.c02 GOTO COMPILE
ECHO File %1.c02 not found
GOTO EOF
ECHO File %1.c02 not found
GOTO EOF
:COMPILE
ECHO Compiling File %1.c02 for Commodore 64
..\c02.exe -h c64 -s c64 -s cbm %1 >%1.dbg
..\c02.exe -d -h c64 -s c64 -s cbm %1 >%1.dbg
IF %ERRORLEVEL% NEQ 0 GOTO EOF
ECHO Assembling File %1.asm
C:\Programs\dasm %1.asm -f1 -o%1.prg -l%1.lst -s%1.sym
ECHO Assembling File %1.asm
..\a02.exe -p %1.asm %1.prg %1.lst >%1.out
IF %ERRORLEVEL% NEQ 0 GOTO EOF
ECHO Starting Emulator
@start C:\Programs\WinVICE\x64.exe -config x64.ini %1.prg
start C:\Programs\WinVICE\x64.exe -config x64.ini %1.prg
:EOF

35
test/orao.bat Normal file
View File

@ -0,0 +1,35 @@
@REM Compile and Assemble Program for Orao
@ECHO OFF
SET ORAOBIN=C:\Programs\OraoEmulator\bin
SET ORAOTAP=C:\Programs\OraoEmulator\tap
SET ORAOWAV=C:\Programs\OraoPy\wav
SET ORAOTOOLS=C:\Programs\OraoEmulator\tools
IF EXIST %1.c02 GOTO COMPILE
ECHO File %1.c02 not found
EXIT /B
:COMPILE
ECHO Compiling File %1.c02
..\c02.exe -h orao -s orao %1 >%1.dbg
IF ERRORLEVEL 1 EXIT /B
ECHO Assembling File %1.asm
dasm %1.asm -f1 -o%1.obj -l%1.lst -s%1.sym
IF ERRORLEVEL 1 EXIT /B
ECHO Creating Binary File
%ORAOTOOLS%\obj2bin %1.obj %ORAOBIN%\%1.bin
IF ERRORLEVEL 1 EXIT /B
ECHO Building Tape Image
%ORAOTOOLS%\maketap %ORAOTAP%\%1.tap %ORAOBIN%\%1.bin
IF ERRORLEVEL 1 EXIT /B
ECHO Building WAV File
%ORAOTOOLS%\orao2wav %ORAOBIN%\%1.bin
IF ERRORLEVEL 1 EXIT /B
MOVE %ORAOBIN%\%1.wav %ORAOWAV%
DEL %1.obj

View File

@ -8,8 +8,8 @@ ECHO Compiling File %1.c02 for VIC 20 +8k
..\c02.exe -h vic8k -s vic -s cbm %1 >%1.dbg
IF %ERRORLEVEL% NEQ 0 GOTO EOF
ECHO Assembling File %1.asm
C:\Programs\dasm %1.asm -f1 -o%1.prg -l%1.lst -s%1.sym
..\a02.exe -p %1.asm %1.prg %1.lst >%1.out
REM C:\Programs\dasm %1.asm -f1 -o%1.prg -l%1.lst -s%1.sym
IF %ERRORLEVEL% NEQ 0 GOTO EOF
ECHO Starting Emulator

View File

@ -15,10 +15,5 @@ REM C:\Programs\dasm %1.asm -f1 -o%1.prg -l%1.lst -s%1.sym
IF %ERRORLEVEL% NEQ 0 GOTO EOF
ECHO Starting Emulator in Debug Mode
REM SET X16DIR=C:\Programs\x16emu
REM SET X16EXE=%X16DIR%\x16emu.exe
REM SET X16ROM=%X16DIR%\rom.bin
REM SET X16CHR=%X16DIR%\chargen.bin
REM %X16EXE% -rom %X16ROM% -char %X16CHR% -prg %1.prg -run -debug
C:\Programs\x16emu\x16emu -prg %1.prg -run -debug -echo raw >%1.out
:EOF