SixtyPical/eg/rudiments
Chris Pressey 5f8802b305 Arrange license info in repo to follow REUSE 3.0 convention. 2024-02-02 12:10:23 +00:00
..
errorful Arrange license info in repo to follow REUSE 3.0 convention. 2024-02-02 12:10:23 +00:00
README.md Arrange license info in repo to follow REUSE 3.0 convention. 2024-02-02 12:10:23 +00:00
add.60p Establish an `include` directory and `--include-path` option. 2019-10-22 15:10:55 +01:00
buffer.60p Establish an `include` directory and `--include-path` option. 2019-10-22 15:10:55 +01:00
call.60p Establish an `include` directory and `--include-path` option. 2019-10-22 15:10:55 +01:00
cmp-byte.60p Establish an `include` directory and `--include-path` option. 2019-10-22 15:10:55 +01:00
cmp-litword.60p Establish an `include` directory and `--include-path` option. 2019-10-22 15:10:55 +01:00
cmp-word.60p Establish an `include` directory and `--include-path` option. 2019-10-22 15:10:55 +01:00
conditional.60p Establish an `include` directory and `--include-path` option. 2019-10-22 15:10:55 +01:00
conditional2.60p Establish an `include` directory and `--include-path` option. 2019-10-22 15:10:55 +01:00
example.60p Establish an `include` directory and `--include-path` option. 2019-10-22 15:10:55 +01:00
forever.60p Final (for now) cleanup of the example sources. 2018-12-12 15:27:57 +00:00
goto.60p Establish an `include` directory and `--include-path` option. 2019-10-22 15:10:55 +01:00
loop.60p Establish an `include` directory and `--include-path` option. 2019-10-22 15:10:55 +01:00
memloc.60p Establish an `include` directory and `--include-path` option. 2019-10-22 15:10:55 +01:00
nested-for.60p Establish an `include` directory and `--include-path` option. 2019-10-22 15:10:55 +01:00
print.60p Establish an `include` directory and `--include-path` option. 2019-10-22 15:10:55 +01:00
vector-table.60p Establish an `include` directory and `--include-path` option. 2019-10-22 15:10:55 +01:00
vector.60p Establish an `include` directory and `--include-path` option. 2019-10-22 15:10:55 +01:00
word-table.60p Establish an `include` directory and `--include-path` option. 2019-10-22 15:10:55 +01:00

README.md

This directory contains example sources which demonstrate the rudiments of SixtyPical.

Examples that are meant to fail and produce an error message when being compiled are in the errorful/ subdirectory.

The other sources are portable across architectures. They use include directives to bring in architecture-dependent libraries to produce output. Libraries for such are provided in the architecture-specific subdirectories of the include directory in the root directory of this repository; make sure it is on the compiler's include search path. For example:

sixtypical --run-on=x64 -I../../include/c64/:../../include/stdlib/ 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.

(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.)