git @ Cat's Eye Technologies SixtyPical / more-modes-on-add-and-sub eg / rudiments / memloc.60p
more-modes-on-add-and-sub

Tree @more-modes-on-add-and-sub (Download .tar.gz)

memloc.60p @more-modes-on-add-and-subraw · history · blame

// Include `support/${PLATFORM}.60p` before this source
// Should print AB

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
}