2015-10-17 11:28:39 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-02-08 14:20:17 +00:00
|
|
|
if [ "X$X64" = "X" ]; then
|
|
|
|
X64=x64
|
|
|
|
fi
|
2015-10-17 11:28:39 +00:00
|
|
|
SRC=$1
|
2017-12-11 15:21:40 +00:00
|
|
|
if [ "X$1" = "X" ]; then
|
2018-03-06 17:00:39 +00:00
|
|
|
echo "Usage: ./loadngo-c64.sh <source.60p>"
|
2017-12-11 15:21:40 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
2015-10-17 11:28:39 +00:00
|
|
|
OUT=/tmp/a-out.prg
|
2018-03-06 17:00:39 +00:00
|
|
|
bin/sixtypical --traceback --prelude=c64 $SRC > $OUT || exit 1
|
2018-02-09 16:57:49 +00:00
|
|
|
ls -la $OUT
|
2017-12-07 16:49:43 +00:00
|
|
|
if [ -e vicerc ]; then
|
2018-02-08 14:20:17 +00:00
|
|
|
$X64 -config vicerc $OUT
|
2017-12-07 16:49:43 +00:00
|
|
|
else
|
2018-02-08 14:20:17 +00:00
|
|
|
$X64 $OUT
|
2017-12-07 16:49:43 +00:00
|
|
|
fi
|
2015-10-17 11:28:39 +00:00
|
|
|
rm -f $OUT
|