From 861a41615ae3389192c07bf28816654a3630bab6 Mon Sep 17 00:00:00 2001 From: Neil Stockbridge Date: Mon, 19 Mar 2018 20:18:49 +1300 Subject: [PATCH] c02.sh works in the vic20 directory once more --- c02.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 c02.sh diff --git a/c02.sh b/c02.sh old mode 100644 new mode 100755 index f2d5f38..cac68be --- a/c02.sh +++ b/c02.sh @@ -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"