2018-03-06 10:32:52 +00:00
|
|
|
This directory contains example sources which demonstrate
|
|
|
|
the rudiments of SixtyPical.
|
|
|
|
|
2018-12-11 17:17:15 +00:00
|
|
|
Examples that are meant to fail and produce an error message
|
|
|
|
are in the `errorful/` subdirectory.
|
2018-03-06 10:32:52 +00:00
|
|
|
|
2018-12-11 17:55:08 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
sixtypical platform/c64.60p vector-table.60p
|
|
|
|
|
|
|
|
so that system entry points such as `chrout` are defined.
|
|
|
|
|
2018-12-11 18:14:36 +00:00
|
|
|
There's a `loadngo.sh` script in this directory that does this.
|
|
|
|
|
|
|
|
./loadngo.sh c64 vector-table.60p
|
|
|
|
|
2018-12-11 17:55:08 +00:00
|
|
|
`chrout` is a routine with outputs the value of the accumulator
|
|
|
|
as an ASCII character, disturbing none of the other registers,
|
2018-03-06 10:32:52 +00:00
|
|
|
simply for the purposes of producing some observable output.
|
2018-12-11 17:55:08 +00:00
|
|
|
|
|
|
|
(There is a KERNAL routine which does this on both the
|
|
|
|
Commodore 64 and the Commodore VIC-20. It should not be hard
|
|
|
|
to find or write such a routine for most other architectures.)
|