Merge pull request #5 from neilstockbridge/master

c02.sh works in the vic20 directory once more
This commit is contained in:
RevCurtisP 2018-03-19 14:32:44 -04:00 committed by GitHub
commit 15eb32b85a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

6
c02.sh Normal file → Executable file
View File

@ -22,14 +22,14 @@ FEXT=${FSPC##*.}; #File Extension
#Generate Output File Names
ASPC=$1.asm #Assembly Language generated by Compiler
BSPC=$1.bin #Binary File created by DASM
BSPC=$FNAM.bin #Binary File created by DASM
OSPC=$1.out #Output File
#Set Default DASM Parameters
OFMT=3 #Raw Binary File
if [[ "$WDIR" == "vic20" ]]; then
BSPC=$1.prg
BSPC=$FNAM.prg
OFMT=1 #Binary with Load Address
fi
@ -44,7 +44,7 @@ fi
#Assemble ASM File
echo "Assembling file $FNAM.asm"
dasm $FNAM.asm -f3 -o$FNAM.bin -l$FNAM.lst -s$FNAM.sym
dasm $FNAM.asm -f$OFMT -o$BSPC -l$FNAM.lst -s$FNAM.sym
ESTS=$?; #Exit Status
if [[ $ESTS -ne 0 ]]; then
echo "Error Assembling file $FNAM.asm"