git @ Cat's Eye Technologies SixtyPical / master eg / rudiments / example.60p
master

Tree @master (Download .tar.gz)

example.60p @masterraw · history · blame

// 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
}