1
0
mirror of https://github.com/catseye/SixtyPical.git synced 2024-11-22 01:32:13 +00:00
SixtyPical/eg/rudiments/example.60p

22 lines
283 B
Plaintext
Raw Permalink Normal View History

// Should print 01
include "chrout.60p"
include "prbyte.60p"
byte lives
define main routine
inputs lives, hexchars
outputs lives
trashes a, x, z, n, c, v
{
ld a, 0
st a, lives
ld x, lives
st off, c
inc x
st x, lives
ld a, lives
call prbyte
}