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

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

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

byte lives

define main routine
  inputs lives
  outputs lives
  trashes a, x, z, n, c, v
  {
      ld a, 0
      st a, lives
      ld x, lives
      st off, c
      add x, 1
      st x, lives
  }