1
0
mirror of https://github.com/catseye/SixtyPical.git synced 2024-06-02 03:41:28 +00:00

Add local load'n'go script. Fill in what each is expected to write.

This commit is contained in:
Chris Pressey 2018-12-11 18:14:36 +00:00
parent d3f730cc76
commit c85cb6722a
9 changed files with 47 additions and 7 deletions

View File

@ -12,6 +12,10 @@ under `platform/`, should be included first, like
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
`chrout` is a routine with outputs the value of the accumulator
as an ASCII character, disturbing none of the other registers,
simply for the purposes of producing some observable output.

View File

@ -1,5 +1,5 @@
// Include `support/${PLATFORM}.60p` before this source
// Should print ???
// Should print AA
define print routine
trashes a, z, n

View File

@ -1,6 +1,6 @@
// Demonstrates vector tables.
// Include `support/${PLATFORM}.60p` before this source
// Should print ???
// Should print YN
define main routine
trashes a, x, y, z, n, c, v

View File

@ -1,5 +1,5 @@
// Include `support/${PLATFORM}.60p` before this source
// Should print ???
// Should print YA
define main routine
trashes a, x, y, z, n, c, v

View File

@ -1,5 +1,5 @@
// Include `support/${PLATFORM}.60p` before this source
// Should print ???
// Should print AB
define bar routine trashes a, z, n {
ld a, 66

36
eg/rudiments/loadngo.sh Executable file
View File

@ -0,0 +1,36 @@
#!/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
../../bin/sixtypical --traceback --output-format=$output_format support/$arch.60p $src --output $out || exit 1
ls -la $out
$emu $out
rm -f $out

View File

@ -1,5 +1,5 @@
// Include `support/${PLATFORM}.60p` before this source
// Should print ???
// Should print ABCDEFGHIJKLMNOPQRSTUVWXYZ
define main routine
trashes a, y, z, n, c

View File

@ -1,5 +1,5 @@
// Include `support/${PLATFORM}.60p` before this source
// Should print ???
// Should print AB
byte foo

View File

@ -1,5 +1,5 @@
// Include `support/${PLATFORM}.60p` before this source
// Should print ???
// Should print AB
vector routine
trashes a, z, n