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"