N
Niv (KP)
First, I haven't done any 'C' for a long time, (I'm VHDL conversant).
I need to read in a file that is all in hexadecimal, apart from a
colon line start, remove the preamble bytes & end checksum byte, and
then write the data bytes into a big array (2 megabytes total data).
The bytes are represented by two hex chars obviously. The preamble
contains info on the length of data in the line.
I then manipulate the array & write the data out again in a slightly
different format, calculating new preamble and checksums for the
output file.
I've done the whole job successfully in VHDL, but that needs a
simulator to run, and I've done it in Tcl, but it takes far too long
to run (hours!), so a simple exe file is needed really, but my 'C'
skills, little as they were, have all but gone!
Any help much appreciated.
I need to read in a file that is all in hexadecimal, apart from a
colon line start, remove the preamble bytes & end checksum byte, and
then write the data bytes into a big array (2 megabytes total data).
The bytes are represented by two hex chars obviously. The preamble
contains info on the length of data in the line.
I then manipulate the array & write the data out again in a slightly
different format, calculating new preamble and checksums for the
output file.
I've done the whole job successfully in VHDL, but that needs a
simulator to run, and I've done it in Tcl, but it takes far too long
to run (hours!), so a simple exe file is needed really, but my 'C'
skills, little as they were, have all but gone!
Any help much appreciated.