Hi guys,
So as some of you may have noticed, I am slowly trying to pick up reverse engineering skills. I was able to get some of the stuff that I needed for my own purpose done but I recently had someone ask me to see if I could take a look at inverting the polarity of the neutral position switch on a specific JDM ECU because, apparently, some transmissions have it reversed. Anyway, I figured, maybe I can do this ...
First thing I realized is that the CAL ID the person is looking at using is a 16 bit rom ... I have only so far played with the sh7058 so that took me back a few steps. Anyhow, my plan was to trace back the IO location for that sensor through the SSM functions. Using Dshultz scripts and documantation (you rock dude), I was able to figure out I think where the function I am interested in is located namely
PtrSSM_switches_4_5_x_6...

I assume this points out to a ram variable where the switch state is stored ?
If my assumption is correct, I tried to locate where in the code that ram variable is set and I found this section, looking at the logic, seems to make sense

So the information that I would be after would be this :
Neutral position switch is switch 4, its either the MSB or LSB assuming MSB
Code:
ROM: 1A3EE brclr 0x0F9, Z, #40h, loc_1A3F6
I am still not 100% on how the addressing on the 16 bit ECU work and I would like someone to explain me what 0x0F9 resolves to ? Another RAM variable, a GPI ??? I'll spend more time looking at the CPU documentation but maybe some quick guidance would make alot of difference for me.
Could anybody, sorta peer review my thought process and give me a pointer as to how to resolve the 0x0F9 address ?
Thanks !