git @ Cat's Eye Technologies SixtyPical / goto-at-end-of-block eg / rudiments / memloc.60p
goto-at-end-of-block

Tree @goto-at-end-of-block (Download .tar.gz)

memloc.60p @goto-at-end-of-blockraw · history · blame

byte foo

define chrout routine
  inputs a
  trashes a
  @ 65490

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
}