mirror of
https://github.com/RevCurtisP/C02.git
synced 2024-11-22 01:31:33 +00:00
Added VIC-20 specific C02 compile scripts vic20/c02.bat and vic20/c02.sh
This commit is contained in:
parent
30e15a269e
commit
57d5094228
5
vic20/c02.bat
Normal file
5
vic20/c02.bat
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
@ECHO Compiling File %1.c02
|
||||||
|
..\c02.exe %1
|
||||||
|
|
||||||
|
@ECHO Assembling File %1.asm
|
||||||
|
C:\Programs\dasm %1.asm -f1 -o%1.prg -l%1.lst -s%1.sym
|
29
vic20/c02.sh
Normal file
29
vic20/c02.sh
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#Compile and Assemble C02 Program
|
||||||
|
|
||||||
|
#Check for Command Line Argument
|
||||||
|
if [[ "$1" = "" ]]; then
|
||||||
|
echo "Usage: $SNAM file[.c02]"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
#Split File Name Parts
|
||||||
|
FSPC=$1; #File Spec
|
||||||
|
FNAM=${FSPC%.*}; #File Name without Extension
|
||||||
|
FEXT=${FSPC##*.}; #File Extension
|
||||||
|
|
||||||
|
#Compile C02 FILE
|
||||||
|
../c02 $FSPC
|
||||||
|
|
||||||
|
#Assemble ASM File
|
||||||
|
echo "Assembling file $FNAM.asm"
|
||||||
|
dasm $FNAM.asm -f1 -o$FNAM.prg -l$FNAM.lst -s$FNAM.sym
|
||||||
|
ESTS=$?; #Exit Status
|
||||||
|
if [[ $ESTS -ne 0 ]]; then
|
||||||
|
echo "Error Assembling file $FNAM.asm"
|
||||||
|
exit $ESTS
|
||||||
|
fi
|
||||||
|
|
||||||
|
#Report Successful Completion
|
||||||
|
echo "Successfully compiled and assembled file $FSPC"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user