1
0
mirror of https://github.com/catseye/SixtyPical.git synced 2025-04-07 23:37:23 +00:00

Remove the "local" loadngo script from here as well.

This commit is contained in:
Chris Pressey 2019-04-15 13:16:07 +01:00
parent a44b007ff0
commit 6d867867fe
2 changed files with 5 additions and 36 deletions

View File

@ -6,15 +6,12 @@ are in the `errorful/` subdirectory.
These files are intended to be architecture-agnostic.
For the ones that do produce output, an appropriate source
under `platform/`, should be included first, like
under `support/` should be included first, so that system entry
points such as `chrout` are defined. In addition, some of these
programs use "standard" support modules, so those should be included
first too. For example:
sixtypical platform/c64.60p vector-table.60p
so that system entry points such as `chrout` are defined.
There's a `loadngo.sh` script in this directory that does this.
./loadngo.sh c64 vector-table.60p
sixtypical --output-format=c64-basic-prg --run support/c64.60p support/stdlib.60p vector-table.60p
`chrout` is a routine with outputs the value of the accumulator
as an ASCII character, disturbing none of the other registers,

View File

@ -1,28 +0,0 @@
#!/bin/sh
usage="Usage: loadngo.sh (c64|vic20) <source.60p>"
arch="$1"
shift 1
if [ "X$arch" = "Xc64" ]; then
output_format='c64-basic-prg'
emu="x64 -config vicerc"
elif [ "X$arch" = "Xvic20" ]; then
output_format='vic20-basic-prg'
emu="xvic -config vicerc"
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
../../bin/sixtypical --traceback --output-format=$output_format support/$arch.60p support/stdlib.60p $src --output $out || exit 1
ls -la $out
$emu $out
rm -f $out