1
0
mirror of https://github.com/catseye/SixtyPical.git synced 2024-06-07 06:29:32 +00:00

Re-organize the example programs.

This commit is contained in:
Chris Pressey 2018-03-06 10:32:52 +00:00
parent 8a7e3aaebb
commit 2fdba72959
27 changed files with 19 additions and 1 deletions

View File

@ -1,7 +1,7 @@
// Displays 256 hearts at the top of the Commodore 64's screen.
// Define where the screen starts in memory:
byte table screen @ 1024
byte table[256] screen @ 1024
routine main
// These are the values that will be written to by this routine:

9
eg/rudiments/README.md Normal file
View File

@ -0,0 +1,9 @@
This directory contains example sources which demonstrate
the rudiments of SixtyPical.
Some are meant to fail and produce an error message.
They are not meant to be specific to any architecture, but
many do assume the existence of a routine at 65490 which
outputs the value of the accumulator as an ASCII character,
simply for the purposes of producing some observable output.

View File

@ -0,0 +1,9 @@
byte table[8] message : "WHAT?"
routine main
inputs message
outputs x, a, z, n
{
ld x, 9
ld a, message + x
}