mirror of
https://github.com/RevCurtisP/C02.git
synced 2025-02-16 14:30:33 +00:00
c02.sh works in the vic20 directory once more
This commit is contained in:
parent
d37647aca8
commit
861a41615a
6
c02.sh
Normal file → Executable file
6
c02.sh
Normal file → Executable 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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user