git @ Cat's Eye Technologies SixtyPical / 0.3 eg / memloc.p60
0.3

Tree @0.3 (Download .tar.gz)

memloc.p60 @0.3raw · history · blame

byte foo

routine chrout
  inputs a
  trashes a
  @ 65490

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

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