diff --git a/eg/rudiments/README.md b/eg/rudiments/README.md index 009854e..914e2cf 100644 --- a/eg/rudiments/README.md +++ b/eg/rudiments/README.md @@ -6,15 +6,12 @@ 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, diff --git a/eg/rudiments/loadngo.sh b/eg/rudiments/loadngo.sh deleted file mode 100755 index 9b7d98a..0000000 --- a/eg/rudiments/loadngo.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh - -usage="Usage: loadngo.sh (c64|vic20) " - -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