if ((uint8_t *)new_offset != NULL) {
// Pattern found, set found state flag
found = 1;
+ offset = new_offset - (uint32_t)current_mode->memory;
}
- offset = offset - (uint32_t)current_mode->memory;
code += *(code - 1);
break;
case OP_BACK:
}
if (offset > current_mode->size) { // Went out of bounds. Error.
+ abort("seeked out of bounds\n");
#ifndef LOADER
- fprintf(stderr, "%x", offset);
+ fprintf(stderr, " -> %x", offset);
#endif
- abort("seeked out of bounds\n");
}
#ifndef LOADER