git @ Cat's Eye Technologies SixtyPical / master eg / rudiments / errorful / range.60p
master

Tree @master (Download .tar.gz)

range.60p @masterraw · history · blame

// should fail analysis with a RangeExceededError
// because the index is detected to fall outside the
//   allowable range of the table it is indexing.

byte table[8] message : "WHAT?"

define main routine
  inputs message
  outputs x, a, z, n
{
  ld x, 9
  ld a, message + x
}