Hello,
I'm trying to write a diff tool (compares the timing, fuel, and mivec tables and tells you what the differences are) and have a question about how the data is laid out for the labels..
For example (from ecuflash xml files)
<table name="High Octane Timing Map" address="5590b" swapxy="true">
<table name="Load" address="60f76" elements="22" />
<table name="RPM" address="60f42" elements="23" />
</table>
It's pretty easy to figure out how the matrix is supposed to be filled out, basically read 506 bytes starting from address 0x5590b then filling the matrix vertically (moving from top to bottom, then right).
The question I have is when I try to pull the X axis labels for the load address starting at 0x60f76 - it's where I run into a problem.
the byte sequence is as such
0x00 0x00 0x00 0x20 0x00 0x40 0x00 0x60 0x00 0x80 ....
This doesn't make sense to me, my assumption is that these labels should be 16-bit integers - reading the 22 elements (double byte) as such doesn't give me the correct decimal value which should be
"0" "10" "20" ....
what I'm getting is
"0x0000" = 0
"0x0020" = 32
"0x0040" = 64
"0x0060" = 96
"0x0080" = 128
Any ideas what I'm doing wrong?