Re: LS1 Boost OS - Development
Posted: Tue Nov 09, 2021 11:19 am
Upload your tune file.
Electronic Fuel Injection - Developement & Tuning
https://pcmhacking.net/forums/
Code: Select all
ROM:00032198 sub.w a1, d3 ; Determine EQ ratio delta (E0_EQ_Ratio - E80_EQ_Ratio)
ROM:0003219A bcc.s loc_3219E ; Branch to 3219E if result is not negative
ROM:0003219C clr.w d3 ; Clear delta if result is negative
ROM:0003219E mulu.w (word_FF9FC6).w, d3 ; Multiply EQ ratio delta by EQ blend factor
ROM:000321A2 lsr.l #8, d3 ; Logical shifts to bring the value back to a normal EQ value
ROM:000321A4 lsr.l #4, d3 ;
ROM:000321A6 add.w a1, d3 ; Add E0_EQ_ratio to the blended E80_EQ_Ratio
Code: Select all
ROM:00032198 sub.w a1, d3 ; Determine EQ ratio delta (E0_EQ_Ratio - E80_EQ_Ratio)
ROM:0003219A bra.s loc_3219E ; Branch to 3219E no matter the result
ROM:0003219C clr.w d3 ; Not needed (could replace with NOP)
ROM:0003219E muls.w (word_FF9FC6).w, d3 ; Multiply EQ ratio delta by EQ blend factor (Changed to signed multiply)
ROM:000321A2 asr.l #8, d3 ; Logical shifts to bring the value back to a normal EQ value (Changed to Arithmetic Shift)
ROM:000321A4 asr.l #4, d3 ;
ROM:000321A6 add.w a1, d3 ; Add E0_EQ_ratio to the blended E80_EQ_Ratio
It’s for signed values. It duplicates the highest bit instead of appending zeros which is what lsr.l does.NSFW wrote:The code change looks good. Why the change from lsr.l to asr.l? (I'm not even sure what the difference is between the two.)
I've been meaning to switch my car from a P01 to P59 soon, before it goes in for a motor swap and retune, just on theory that the extra unused flash memory in the P59 would make it easier to modify the code.
P01 is also slower.bubba2533 wrote:More changes:
I'm planning on making one VE table instead of 2. The main reason why I was doing two was for the P01 PCM because there isn't much unused space for new tables. For the P59 I can put all the parameters in unused address space (0x8A83E and up).
Not sure if I'll want to continue to mess around with the P01 since it's that much more difficult to find free space.
How do you know that?Highlander wrote: P01 is also slower.