RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Sat Feb 21, 2026 10:04 pm

All times are UTC




Post new topic Reply to topic  [ 52 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
 Post subject: Re: 16 bit ecu disassembly
PostPosted: Mon Jan 11, 2010 7:25 pm 
Offline
Experienced

Joined: Mon Aug 18, 2008 11:15 pm
Posts: 316
Location: Chicago, Illinois
I have always just jumped around and and followed what I wanted to follow(like a certain bit, or address) rather than go in order of the program.

Andy


Top
 Profile  
 
 Post subject: Re: 16 bit ecu disassembly
PostPosted: Tue Jan 12, 2010 3:52 am 
Offline
Experienced
User avatar

Joined: Sun Apr 27, 2008 2:14 pm
Posts: 316
Location: Kenya
elevenpoint7five wrote:
I have always just jumped around and and followed what I wanted to follow(like a certain bit, or address) rather than go in order of the program.

Andy


Thanks, did you get to the CEL logic?

_________________
2009 JDM STi Spec C
RCM420-SR60
IDX1050
RCM FPR & PFR


Top
 Profile  
 
 Post subject: Re: 16 bit ecu disassembly
PostPosted: Tue Jan 12, 2010 5:12 am 
Offline
Experienced

Joined: Mon Aug 18, 2008 11:15 pm
Posts: 316
Location: Chicago, Illinois
I know where a lot of the CEL logic is, but I still haven't figured out the "ghost" CEL. I am giving the SD ROM a little break while I work on the logger defs for the 2010 WRX. I hope one of those responses answers your question, I'm not sure I understood it fully, sorry!

Andy


Top
 Profile  
 
 Post subject: Re: 16 bit ecu disassembly
PostPosted: Tue Jan 12, 2010 5:19 am 
Offline
Experienced
User avatar

Joined: Sun Apr 27, 2008 2:14 pm
Posts: 316
Location: Kenya
elevenpoint7five wrote:
I know where a lot of the CEL logic is, but I still haven't figured out the "ghost" CEL. I am giving the SD ROM a little break while I work on the logger defs for the 2010 WRX. I hope one of those responses answers your question, I'm not sure I understood it fully, sorry!

Andy


Ok, I have been trying to work out the CEL issue, but have not located the logic, I would appreciate some pointers, I have 5 free days to look further into it.

_________________
2009 JDM STi Spec C
RCM420-SR60
IDX1050
RCM FPR & PFR


Top
 Profile  
 
 Post subject: Re: 16 bit ecu disassembly
PostPosted: Tue Jan 12, 2010 7:08 am 
Offline
Experienced

Joined: Mon Aug 18, 2008 11:15 pm
Posts: 316
Location: Chicago, Illinois
You'll find the CEL LUT located after the SSM LUT in the ROM. It should follow something like this:
Code:
25h
1
0FBh
1
5
0
0
2
5
0
0
4
5
0
0
8
5
0
0
10
5
0
0
20
5
0
0
40
5
0
0
80
5
0
0

It will keep repeating the same pattern with the first number(25) going up for each 8 bits, this is the byte you're looking for. The bits are the other numbers you see that are not 5, 0, 0, they correspond to the mask on the byte in the logic. For example you might see the following code in the ROM:
Code:
bset 25h, z, #80

That would be setting the last CEL code in the example I gave. In the example though, I used all 5, 0, 0 which is a disabled or unused code. You would substitute in a real code, like 03/04 04 20 which would be a P0420. The 03/04 is decided by whether the code is a Subaru specific code or a general code I believe.

This should get you started, and you will uncover some logic where you will find CEL delays for many things. From there, you should keep following things around and you'll notice a few routines that keep popping up, those are probably some of the routines to parse the CEL LUT and throw the codes to the OBD-II readers. There is also one routine that handles all of the codes that will effect performance. It groups certain codes together into one single bit-check for use in other logic. For example, the TGV and OCV codes are grouped together in the Group-N ROM and used to change some knock correction related stuff.

Hope that helps!

Andy


Top
 Profile  
 
 Post subject: Re: 16 bit ecu disassembly
PostPosted: Tue Jan 12, 2010 7:32 am 
Offline
Experienced
User avatar

Joined: Sun Apr 27, 2008 2:14 pm
Posts: 316
Location: Kenya
Very much appreciated Andy, cheers.

_________________
2009 JDM STi Spec C
RCM420-SR60
IDX1050
RCM FPR & PFR


Top
 Profile  
 
 Post subject: Re: 16 bit ecu disassembly
PostPosted: Wed Jan 13, 2010 10:49 am 
Offline
Experienced
User avatar

Joined: Sun Apr 27, 2008 2:14 pm
Posts: 316
Location: Kenya
I found the CEL table thanks; is the reference to this table in any way similar to what we saw earlier with the SSM LUT?

_________________
2009 JDM STi Spec C
RCM420-SR60
IDX1050
RCM FPR & PFR


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 52 posts ]  Go to page Previous  1, 2, 3, 4

All times are UTC


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl