The main issue is ps_w being capped out and the ECU not being able to calculate load anymore.
I don't see anything dealing with that.
It's not the sensor pressure variable that is a problem, it's the 2559 limit on manifold pressure, which has to be rescaled. It's not 8 bit, it's 16 bit.
So this does not solve anything really besides boost request. Proper 5120 mod is the superior solution and it's also what Bosch did on MED9 et al...
Took another whack at it. I patched all the key pressure consumers — including KFLDIMX (0x812914), KFLDRAPP (0x81F628), KFLBTS, KFLDHBN, and KFVPDKSD — to use MOV AX, [0x0040F0] instead of the original 8-bit MOVB AL, [0x0033F5]. With that change, the full 16-bit MAP value now flows into the load calculation path, and PS_W is no longer artificially limited.
Recap of what has been done:
1. 16-bit MAP Scaling Logic
- Routine address: 0x83FA00
- Reads 10-bit ADC from: 0x0021F4
- Scaling formula: ((adc_raw - 102) * 400) / 819
- Output stored in RAM at: 0x0040F0
- CALL to scaling routine inserted at: 0x83F7F0 (CALL 0x83FA00)
2. PS_W Path Correction
To ensure PS_W and load logic use the new 16-bit MAP value, references to the original 8-bit source (0x0033F5) were
replaced.
Patched locations (replaced with MOV AX, [0x0040F0]):
- KFLDIMX: 0x812914
- KFLBTS: 0x81297C
- KFLDRAPP: 0x81F628
- KFLDHBN: 0x813FC4
- KFVPDKSD: 0x814458
3. Load Axis Extensions (0-300%)
All 16-point X-axes were extended from 0-191% to 0-300% load.
Patched axis locations:
- KFMIRL axis: 0x1CE0D8
- LAMFA axis: 0x1CE830
- KFMIOP axis: 0x1CE9A4
- KFMIOPU axis: 0x1CEA00
- KFLDIMX axis: 0x1D1F3C
- KFLDRL axis: 0x1CF458
New axis values: 0, 20, 40, ..., 300 (%)
4. Map Rescaling
Maps were rescaled to fit the new load axis using interpolation based on their original shape.
Patched map locations:
- KFMIRL: 0x1CDA7C
- LAMFA: 0x1CE5A0
- KFMIOP: 0x1CE6E8
- KFMIOPU: 0x1CE774
- KFLDIMX: 0x1D1F4C
- KFLDRL: 0x1CF198
5. Logic Summary
This patch removes the need for the traditional 5120 hack by:
- Using a true 16-bit pressure value throughout the ECU logic
- Allowing PS_W to exceed 2559 mBar
- Maintaining full compatibility with stock logic flow