summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/jedparse.cpp
diff options
context:
space:
mode:
author Vas Crabb <cuavas@users.noreply.github.com>2020-01-31 20:05:02 +1100
committer GitHub <noreply@github.com>2020-01-31 20:05:02 +1100
commitbddfe1030c9a0847ebb74a8c253844624692413c (patch)
tree22656a0010dc0d5dd67abb8eb2eae456c22d54d7 /src/lib/util/jedparse.cpp
parent7d5c59f6e507c3ee855014cbbf9a2e6f212057fd (diff)
Revert "Alfaskop improvements"
Diffstat (limited to 'src/lib/util/jedparse.cpp')
-rw-r--r--src/lib/util/jedparse.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/lib/util/jedparse.cpp b/src/lib/util/jedparse.cpp
index 14cc503f18f..d25b35c3328 100644
--- a/src/lib/util/jedparse.cpp
+++ b/src/lib/util/jedparse.cpp
@@ -391,24 +391,9 @@ int jedbin_parse(const void *data, size_t length, jed_data *result)
/* first unpack the number of fuses */
result->numfuses = (cursrc[0] << 24) | (cursrc[1] << 16) | (cursrc[2] << 8) | cursrc[3];
cursrc += 4;
-
if (result->numfuses == 0 || result->numfuses > JED_MAX_FUSES)
return JEDERR_INVALID_DATA;
- /* Detect DataIO binary format and prepare for conversion. This transformation is based on observation of an 82S100 dump */
- if (result->numfuses == ((cursrc[0] << 24) | (cursrc[1] << 16) | (cursrc[2] << 8) | cursrc[3]))
- {
- result->numfuses = (result->numfuses - 9) * 8; // Double 32 bit byte file size header + trailing byte to Single 32 byte fuse count
- cursrc = cursrc + 4; // Adjust start of buffer, trailing byte will not be copied below
- result->binfmt = DATAIO; // DataIO also has swapped inverted/non-inverted line fuses so remember origin
- if (LOG_PARSE) printf("DATAIO format detected\n");
- }
- else
- {
- result->binfmt = MAXLOADER; // This is the old format just set for completeness.
- if (LOG_PARSE) printf("MAXLOADER format detected\n");
- }
-
/* now make sure we have enough data in the source */
if (length < 4 + (result->numfuses + 7) / 8)
return JEDERR_INVALID_DATA;