FOR address = start TO end
  checksum = checksum + (data[address] xor address)
NEXT address