Commits

Anonymous committed 6011f6d

Split run.sh off from make.sh, and handle VICE-2.4 (load at $1001).

Comments (0)

Files changed (3)

bin/ekileugor.prg

Binary file modified.
 #!/bin/sh
-# usage: ./make.sh ekileugor [test]
+if [ -z $1 ]; then
+    TARGET='ekileugor'
+else
+    TARGET=$1
+fi
 mkdir -p bin
-yucca -R -x src/$1.bas > src/$1.yucca.bas || exit $?
-petcat -w2 -o bin/$1.prg -- src/$1.yucca.bas || exit $?
-rm -f src/$1.yucca.bas
-ls -la bin/$1.prg
-if [ "x$2" = "xtest" ]; then
-  xvic bin/$1.prg
-fi
+yucca -R -x src/$TARGET.bas > src/$TARGET.yucca.bas || exit $?
+# $1001 is the BASIC memory start address on the unexpanded VIC-20
+petcat -l 1001 -w2 -o bin/$TARGET.prg -- src/$TARGET.yucca.bas || exit $?
+rm -f src/$TARGET.yucca.bas
+ls -la bin/$TARGET.prg
+#!/bin/sh
+if [ -z $1 ]; then
+    TARGET='ekileugor'
+else
+    TARGET=$1
+fi
+./make.sh $TARGET || exit $?
+xvic bin/$TARGET.prg