git @ Cat's Eye Technologies SixtyPical / reform-loadngo
Remove the "local" loadngo script from here as well. Chris Pressey 2 years ago
2 changed file(s) with 5 addition(s) and 36 deletion(s). Raw diff Collapse all Expand all
55
66 These files are intended to be architecture-agnostic.
77 For the ones that do produce output, an appropriate source
8 under `platform/`, should be included first, like
8 under `support/` should be included first, so that system entry
9 points such as `chrout` are defined. In addition, some of these
10 programs use "standard" support modules, so those should be included
11 first too. For example:
912
10 sixtypical platform/c64.60p vector-table.60p
11
12 so that system entry points such as `chrout` are defined.
13
14 There's a `loadngo.sh` script in this directory that does this.
15
16 ./loadngo.sh c64 vector-table.60p
13 sixtypical --output-format=c64-basic-prg --run support/c64.60p support/stdlib.60p vector-table.60p
1714
1815 `chrout` is a routine with outputs the value of the accumulator
1916 as an ASCII character, disturbing none of the other registers,
+0
-28
eg/rudiments/loadngo.sh less more
0 #!/bin/sh
1
2 usage="Usage: loadngo.sh (c64|vic20) <source.60p>"
3
4 arch="$1"
5 shift 1
6 if [ "X$arch" = "Xc64" ]; then
7 output_format='c64-basic-prg'
8 emu="x64 -config vicerc"
9 elif [ "X$arch" = "Xvic20" ]; then
10 output_format='vic20-basic-prg'
11 emu="xvic -config vicerc"
12 else
13 echo $usage && exit 1
14 fi
15
16 src="$1"
17 if [ "X$src" = "X" ]; then
18 echo $usage && exit 1
19 fi
20
21 ### do it ###
22
23 out=/tmp/a-out.prg
24 ../../bin/sixtypical --traceback --output-format=$output_format support/$arch.60p support/stdlib.60p $src --output $out || exit 1
25 ls -la $out
26 $emu $out
27 rm -f $out