Notices

ROM disassembly as raw text file

Thread Tools
 
Search this Thread
 
Old Sep 8, 2020, 02:35 PM
  #241  
Newbie
 
psfp's Avatar
 
Join Date: Jan 2012
Location: Brazil
Posts: 87
Received 10 Likes on 10 Posts
Originally Posted by richardjh
Here are the common scale and table "header" structures...



Scales - 16 bit format

2 bytes: Destination Variable Address (relative to fp)
2 bytes: Source Variable Address (relative to fp)
2 bytes: Number of elements that follow
...
...then the scale data.


Tables - 8 bit format, 2-Dimensional

1 byte: Style of table. 02 = 2-dimensional
1 byte: Value offset (a fixed value to add to every raw table element)
2 bytes: Source Scaling Variable Address (relative to fp)
...
...then the table data.


Tables - 8 bit format, 3-Dimensional

1 byte: Style of table. 03 = 3-dimensional.
1 byte: Value offset (a fixed value to add to every raw table element)
2 bytes: Source X Scaling Variable Address (relative to fp)
2 bytes: Source Y Scaling Variable Address (relative to fp)
1 byte: Number of rows (or columns... I forget)
...
...then the table data.


Tables - 16 bit format, 2-Dimensional

2 bytes: Style of table. 0002 = 2-dimensional
2 bytes: Value offset (a fixed value to add to every raw table element)
2 bytes: Source Scaling Variable Address (relative to fp)
...
...then the table data.


Tables - 16 bit format, 3-Dimensional

2 bytes: Style of table. 0003 = 3-dimensional.
2 bytes: Value offset (a fixed value to add to every raw table element)
2 bytes: Source X Scaling Variable Address (relative to fp)
2 bytes: Source Y Scaling Variable Address (relative to fp)
2 bytes: Number of rows (or columns... I forget)
...
...then the table data.




There are some weirdo extra formats that crop up in later year ROMs (eg. 2011), but the above will cover 99.9% of all data styles.

If any typos have snuck in, let me know and I'll edit to fix.

Rich
I'm probably a few years late, but I noticed some tables headers are bit different from what Rich have said (probably the 0.1% data style). Examples:

00 06 1C 70 00 06 1C E8 header in a 8 bits / 3D table.
00 06 33 AA 00 06 33 C8 header in a 16 bits / 3D table

Does anyone know what it means?
Old Sep 10, 2020, 09:08 PM
  #242  
Newbie
 
Dow Jhob's Avatar
 
Join Date: Jun 2016
Location: siberia
Posts: 93
Likes: 0
Received 7 Likes on 7 Posts
Originally Posted by psfp
I'm probably a few years late, but I noticed some tables headers are bit different from what Rich have said (probably the 0.1% data style). Examples:

00 06 1C 70 00 06 1C E8 header in a 8 bits / 3D table.
00 06 33 AA 00 06 33 C8 header in a 16 bits / 3D table

Does anyone know what it means?
an example of such a table? address?
Old Sep 11, 2020, 06:27 AM
  #243  
Newbie
 
psfp's Avatar
 
Join Date: Jan 2012
Location: Brazil
Posts: 87
Received 10 Likes on 10 Posts
Originally Posted by Dow Jhob
an example of such a table? address?
ROM ID 56920008.

Lower Bound Ignition Timing:


TPS Overrun Base (Pre Decel Fuelcut):

Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
mrfred
ECU Flash
268
Feb 26, 2022 06:16 PM
jcsbanks
ECU Flash
3
May 19, 2019 11:03 PM
logic
ECU Flash
78
Nov 8, 2018 04:17 AM
mrfred
ECU Flash
831
Sep 17, 2017 06:11 AM
joat09
ECU Flash
0
Sep 8, 2016 01:20 PM



Quick Reply: ROM disassembly as raw text file



All times are GMT -7. The time now is 04:56 AM.