2018-12-11 18:14:36 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
usage="Usage: loadngo.sh (c64|vic20) <source.60p>"
|
|
|
|
|
|
|
|
arch="$1"
|
|
|
|
shift 1
|
|
|
|
if [ "X$arch" = "Xc64" ]; then
|
|
|
|
output_format='c64-basic-prg'
|
|
|
|
if [ -e vicerc ]; then
|
|
|
|
emu="x64 -config vicerc"
|
|
|
|
else
|
|
|
|
emu="x64"
|
|
|
|
fi
|
|
|
|
elif [ "X$arch" = "Xvic20" ]; then
|
|
|
|
output_format='vic20-basic-prg'
|
|
|
|
if [ -e vicerc ]; then
|
|
|
|
emu="xvic -config vicerc"
|
|
|
|
else
|
|
|
|
emu="xvic"
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo $usage && exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
src="$1"
|
|
|
|
if [ "X$src" = "X" ]; then
|
|
|
|
echo $usage && exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
### do it ###
|
|
|
|
|
|
|
|
out=/tmp/a-out.prg
|
2018-12-25 18:10:58 +00:00
|
|
|
../../bin/sixtypical --traceback --output-format=$output_format support/$arch.60p support/stdlib.60p $src --output $out || exit 1
|
2018-12-11 18:14:36 +00:00
|
|
|
ls -la $out
|
|
|
|
$emu $out
|
|
|
|
rm -f $out
|