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

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

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

buffer[2048] buf
pointer ptr @ 254
byte foo

define main routine
  inputs buf
  outputs buf, y, foo
  trashes a, z, n, ptr
{
    ld y, 0
    copy ^buf, ptr
    copy 123, [ptr] + y
    copy [ptr] + y, foo
    copy foo, [ptr] + y
}