rem: int avr_get_cycle_count(int fd, AVRPART * p)
add: int avr_get_cycle_count(int fd, AVRPART * p, int * cycles)
context: int avr_get_cycle_count(int fd, AVRPART * p){  AVRMEM * a;  int cycle_count;  unsigned char v1, v2, v3, v4;  int rc;  a = avr_locate_mem(p, "eeprom");  if (a == NULL) {    return -1;  }  rc = avr_read_byte(fd, p, a, a->size-4, &v1);  if (rc < 0) {    fprintf(stderr, "%s: WARNING: can't read memory for cycle count, rc=%d\n",            progname, rc);    return -1;  }  rc = avr_read_byte(fd, p, a, a->size-3, &v2);  if (rc < 0) {    fprintf(stderr, "%s: WARNING: can't read memory for cycle count, rc=%d\n",            progname, rc);    return -1;  }  rc = avr_read_byte(fd, p, a, a->size-2, &v3);  if (rc < 0) {    fprintf(stderr, "%s: WARNING: can't read memory for cycle count, rc=%d\n",            progname, rc);    return -1;  }  rc = avr_read_byte(fd, p, a, a->size-1, &v4);  if (rc < 0) {    fprintf(stderr, "%s: WARNING: can't read memory for cycle count, rc=%d\n",            progname, rc);    return -1;  }  if ((v1 == 0xff) && (v2 == 0xff) && (v3 != 0xff) && (v4 != 0xff)) {    v1 = 0;    v2 = 0;  }  cycle_count = (((unsigned int)v1) << 24) |     (((unsigned int)v2) << 16) |    (((unsigned int)v3) << 8) |    v4;  return cycle_count;}