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

Tree @master (Download .tar.gz)

memloc.60p @masterraw · history · blame

// Should print AB

include "chrout.60p"

byte foo

define print routine
  inputs foo
  trashes a, z, n
{
    ld a, foo
    call chrout
}

define main routine
  trashes a, y, z, n, foo
{
    ld y, 65
    st y, foo
    call print
    inc foo
    call print
}