$8D-Turbo bin development thread
Joined: Sep 2003
Posts: 25,895
Likes: 429
From: Pittsburgh PA
Car: 89 Iroc-z
Engine: 555 BBC Turbo
Transmission: TH400
Axle/Gears: MWC 9” 3.00
Re: $8D-Turbo bin development thread
Thats strange. If ve tables dont have abnormal spikes in it, fuel should be consistant unless missfiring or large jump in timing.
Is That quasi fuel option turned off?
Is That quasi fuel option turned off?
Member
Joined: Jul 2004
Posts: 419
Likes: 1
From: Salem,Oregon.
Car: '74 Firebird, '84 vette
Engine: 454 twin turbo, 350 HSR
Transmission: 4L80E, 700R4
Axle/Gears: 9", Dana36
Re: $8D-Turbo bin development thread
I read a few posts up that you are looking to add flex fuel support.
The speeduino project added it several months ago to their arduino based EFI controller.
The code is available on github and is really simple. Adapting the concept shouldnt be too hard.
The speeduino project added it several months ago to their arduino based EFI controller.
The code is available on github and is really simple. Adapting the concept shouldnt be too hard.
Thread Starter
Supreme Member

Joined: Aug 2002
Posts: 1,169
Likes: 42
From: ARIZONA
Car: 92 Trans Am Conv
Engine: LB9
Transmission: T5
Axle/Gears: 3.08
Re: $8D-Turbo bin development thread
I'll look into it to see if they've done anything interesting. Thanks for the heads up.
I also could add Flexfuel functionality without the NVSRAM but the NVSRAM makes it more fun for me being all coding.
Joined: Jul 1999
Posts: 1,992
Likes: 10
From: CT
Car: 1986 Camaro SC
Engine: 305 TPI Procharged D1SC
Transmission: Tremec TKO-600
Axle/Gears: Moser 12 Bolt 3.73 posi
Re: $8D-Turbo bin development thread
guess it don't matter no more, took the air filter off the procharger and the bolt for the impeller fell off chewed up the impeller good. corvette time
Joined: Jul 1999
Posts: 12,089
Likes: 125
From: SALEM, NH
Car: '88 Formula
Engine: LC9
Transmission: 4L60E
Axle/Gears: 3.89 9"
Re: $8D-Turbo bin development thread
Corvette is a good call. Might as well keep the thirdgen though, just park it somewhere and never drive it like me. Nobody will pay you anywhere near what it's worth if you try to sell it.
-- Joe
Joined: Jul 1999
Posts: 1,992
Likes: 10
From: CT
Car: 1986 Camaro SC
Engine: 305 TPI Procharged D1SC
Transmission: Tremec TKO-600
Axle/Gears: Moser 12 Bolt 3.73 posi
Re: $8D-Turbo bin development thread
yeah the bolt and that weird bevel washer came out, i can clearly see locking compound on the threads. procharger says the only thing they can think of is the heat made the locking compound fail after a while
Thread Starter
Supreme Member

Joined: Aug 2002
Posts: 1,169
Likes: 42
From: ARIZONA
Car: 92 Trans Am Conv
Engine: LB9
Transmission: T5
Axle/Gears: 3.08
Re: $8D-Turbo bin development thread
Added two "new" features.
Made the highway mode automatically on and aggressive.
Eliminated the "paperclip trick" diagnostic readout. Now with the Drivemodes switch I added you only need to change to mode 0 (injector Killswitch) to read codes.
Made the highway mode automatically on and aggressive.
Eliminated the "paperclip trick" diagnostic readout. Now with the Drivemodes switch I added you only need to change to mode 0 (injector Killswitch) to read codes.
Joined: Jul 1999
Posts: 1,992
Likes: 10
From: CT
Car: 1986 Camaro SC
Engine: 305 TPI Procharged D1SC
Transmission: Tremec TKO-600
Axle/Gears: Moser 12 Bolt 3.73 posi
Thread Starter
Supreme Member

Joined: Aug 2002
Posts: 1,169
Likes: 42
From: ARIZONA
Car: 92 Trans Am Conv
Engine: LB9
Transmission: T5
Axle/Gears: 3.08
Re: $8D-Turbo bin development thread
In tunerpro you can set up new scalars at the address locations I posted. Then make sure the value I said is there actually is. Then you edit it to the 3 bar values I posted, save, burn, try it out.
You can also use the hex editor feature in tunerpro and do the same thing.
It's really quite simple. But you will want to be VERY careful running this as its untested under boost.
Eventually I'll add these scalars to the XDF I posted to make this a switchable map sensor setup for anybody that can alter a tune.
You can also use the hex editor feature in tunerpro and do the same thing.
It's really quite simple. But you will want to be VERY careful running this as its untested under boost.
Eventually I'll add these scalars to the XDF I posted to make this a switchable map sensor setup for anybody that can alter a tune.
Joined: Jul 1999
Posts: 1,992
Likes: 10
From: CT
Car: 1986 Camaro SC
Engine: 305 TPI Procharged D1SC
Transmission: Tremec TKO-600
Axle/Gears: Moser 12 Bolt 3.73 posi
Re: $8D-Turbo bin development thread
In tunerpro you can set up new scalars at the address locations I posted. Then make sure the value I said is there actually is. Then you edit it to the 3 bar values I posted, save, burn, try it out.
You can also use the hex editor feature in tunerpro and do the same thing.
It's really quite simple. But you will want to be VERY careful running this as its untested under boost.
Eventually I'll add these scalars to the XDF I posted to make this a switchable map sensor setup for anybody that can alter a tune.
You can also use the hex editor feature in tunerpro and do the same thing.
It's really quite simple. But you will want to be VERY careful running this as its untested under boost.
Eventually I'll add these scalars to the XDF I posted to make this a switchable map sensor setup for anybody that can alter a tune.
3 bar values:
scalar: 210 = 0x00D2
Offset: 921 = 0x0399
so i can make a new scalar anywhere in the scalar list edit it and add the hex address 0x00D2 what is the 210 mean? and what is offset?
Thread Starter
Supreme Member

Joined: Aug 2002
Posts: 1,169
Likes: 42
From: ARIZONA
Car: 92 Trans Am Conv
Engine: LB9
Transmission: T5
Axle/Gears: 3.08
Re: $8D-Turbo bin development thread
Scalar and offset don't matter for you. Just enter the hex 0x000 style number at the addresses.
The numbers are the actual values of the hex you're entering.
The numbers are the actual values of the hex you're entering.
Thread Starter
Supreme Member

Joined: Aug 2002
Posts: 1,169
Likes: 42
From: ARIZONA
Car: 92 Trans Am Conv
Engine: LB9
Transmission: T5
Axle/Gears: 3.08
Re: $8D-Turbo bin development thread
Locked BLM at WOT now.
More to come, but very slow moving. 3 jobs and 2 kids keeps me even busier than before.
More to come, but very slow moving. 3 jobs and 2 kids keeps me even busier than before.
Junior Member
Joined: Oct 2014
Posts: 56
Likes: 1
From: Sacramento CA
Car: 1990 Corvette
Engine: SuperRam 383
Transmission: ZF6
Axle/Gears: 3.33
Re: $8D-Turbo bin development thread
Has this project totally died? I'm trying to figure out the engine management strategy for my '90 Corvette I'm about to boost, and was very excited to come across this thread.
Thread Starter
Supreme Member

Joined: Aug 2002
Posts: 1,169
Likes: 42
From: ARIZONA
Car: 92 Trans Am Conv
Engine: LB9
Transmission: T5
Axle/Gears: 3.08
Re: $8D-Turbo bin development thread
Junior Member
Joined: Oct 2014
Posts: 56
Likes: 1
From: Sacramento CA
Car: 1990 Corvette
Engine: SuperRam 383
Transmission: ZF6
Axle/Gears: 3.33
Re: $8D-Turbo bin development thread
- Has to be easily revertable to stock or visually similar so I can pass CA smog
- Has to preserve ECM/CCM comms so the dash MPG display works
- Has to be able to run a flex fuel sensor
- No lift shift would be nice
- Ability to control a wastegate and possibly water injection pump would be nice
Thread Starter
Supreme Member

Joined: Aug 2002
Posts: 1,169
Likes: 42
From: ARIZONA
Car: 92 Trans Am Conv
Engine: LB9
Transmission: T5
Axle/Gears: 3.08
Re: $8D-Turbo bin development thread
I'd offer to test, but I'm a long way off from boost. Right now I'm just making sure there's a good solution for engine management before I pull the trigger on a Procharger kit. Right now I'm leaning toward piggybacking a standalone (probably MS3) on my stock ECM, but I think this code would do the trick. My main requirements are:
- Has to be easily revertable to stock or visually similar so I can pass CA smog
- Has to preserve ECM/CCM comms so the dash MPG display works
- Has to be able to run a flex fuel sensor
- No lift shift would be nice
- Ability to control a wastegate and possibly water injection pump would be nice
Flex fuel I'm going to be honest, probably not going to happen at this point. There's no E85 near me anymore so I have lost interest in it.
Really not hard to do. Run a repeating cycle to check fuel trims every few minutes, adjust and store a multiple to correct fueling across the board instead of just closed loop.
Also the same way can I planned to be done to automatically adjust the entire timing table up or down until it knocks or until an acceptable threshold of knock. Recheck every so often at WOT.
No lift shift, is not necessarily impossible but can't be implemented in an ideal way as the computer has no idea when the clutch is engaged and it's not a drive by wire car.
Wastegate control I had planned too but the longer this turbo sits on the shelf the more I realize I won't ever get around to doing everything I wanted and it would have required an arduino anyway so that can still be done by somebody and used at the same time.
Junior Member
Joined: Oct 2014
Posts: 56
Likes: 1
From: Sacramento CA
Car: 1990 Corvette
Engine: SuperRam 383
Transmission: ZF6
Axle/Gears: 3.33
Re: $8D-Turbo bin development thread
Well, The code is pretty basic work. It's got extended tables and MAF ranges so it might be ready to go as-is with basic tuning. It's a tune so everything else is as it is now. Swap the MAF and off you go.
Flex fuel I'm going to be honest, probably not going to happen at this point. There's no E85 near me anymore so I have lost interest in it.
Really not hard to do. Run a repeating cycle to check fuel trims every few minutes, adjust and store a multiple to correct fueling across the board instead of just closed loop.
Also the same way can I planned to be done to automatically adjust the entire timing table up or down until it knocks or until an acceptable threshold of knock. Recheck every so often at WOT.
No lift shift, is not necessarily impossible but can't be implemented in an ideal way as the computer has no idea when the clutch is engaged and it's not a drive by wire car.
Wastegate control I had planned too but the longer this turbo sits on the shelf the more I realize I won't ever get around to doing everything I wanted and it would have required an arduino anyway so that can still be done by somebody and used at the same time.
Flex fuel I'm going to be honest, probably not going to happen at this point. There's no E85 near me anymore so I have lost interest in it.
Really not hard to do. Run a repeating cycle to check fuel trims every few minutes, adjust and store a multiple to correct fueling across the board instead of just closed loop.
Also the same way can I planned to be done to automatically adjust the entire timing table up or down until it knocks or until an acceptable threshold of knock. Recheck every so often at WOT.
No lift shift, is not necessarily impossible but can't be implemented in an ideal way as the computer has no idea when the clutch is engaged and it's not a drive by wire car.
Wastegate control I had planned too but the longer this turbo sits on the shelf the more I realize I won't ever get around to doing everything I wanted and it would have required an arduino anyway so that can still be done by somebody and used at the same time.
Joined: Sep 2003
Posts: 25,895
Likes: 429
From: Pittsburgh PA
Car: 89 Iroc-z
Engine: 555 BBC Turbo
Transmission: TH400
Axle/Gears: MWC 9” 3.00
Re: $8D-Turbo bin development thread
Aftermarket boost control if you are trying to run a wastegate on a blower car to control boost
Supreme Member

Joined: Jul 1999
Posts: 1,466
Likes: 71
From: Alberta, Canada
Car: 1989 Camaro-1LE
Engine: TPI(s)
Transmission: 5 speed (MM5, MK6)
Axle/Gears: 3.45, 3.73
Re: $8D-Turbo bin development thread
Mark.
Thread Starter
Supreme Member

Joined: Aug 2002
Posts: 1,169
Likes: 42
From: ARIZONA
Car: 92 Trans Am Conv
Engine: LB9
Transmission: T5
Axle/Gears: 3.08
Re: $8D-Turbo bin development thread
Hey, currently I'm pretty removed from the project, but not permanently abandoned. Just way down on priorities list right now.
I don't remember any switches for that, but it's been quite a while since I set this up. I am pretty sure it's the same code I've been running since posting and that's the exact xdf file I used. I think I was pretty good at posting about implemented changes on what was altered so that people could use and adapt to my work very easily just from this thread alone. It was an incredibly simple set of changes. The crazy stuff was mostly in my head or hidden in the code and not defined and maybe not even posted. Again, I don't remember! But it is disabled if not in the XDF.
Just take it easy and go slow with the boost until you've fully tested it or run into issues to be addressed.
Don't really know if this helps but hopefully it's something!
I don't remember any switches for that, but it's been quite a while since I set this up. I am pretty sure it's the same code I've been running since posting and that's the exact xdf file I used. I think I was pretty good at posting about implemented changes on what was altered so that people could use and adapt to my work very easily just from this thread alone. It was an incredibly simple set of changes. The crazy stuff was mostly in my head or hidden in the code and not defined and maybe not even posted. Again, I don't remember! But it is disabled if not in the XDF.
Just take it easy and go slow with the boost until you've fully tested it or run into issues to be addressed.
Don't really know if this helps but hopefully it's something!
Supreme Member

Joined: Jul 1999
Posts: 1,466
Likes: 71
From: Alberta, Canada
Car: 1989 Camaro-1LE
Engine: TPI(s)
Transmission: 5 speed (MM5, MK6)
Axle/Gears: 3.45, 3.73
Re: $8D-Turbo bin development thread
Hey, currently I'm pretty removed from the project, but not permanently abandoned. Just way down on priorities list right now.
I don't remember any switches for that, but it's been quite a while since I set this up. I am pretty sure it's the same code I've been running since posting and that's the exact xdf file I used. I think I was pretty good at posting about implemented changes on what was altered so that people could use and adapt to my work very easily just from this thread alone. It was an incredibly simple set of changes. The crazy stuff was mostly in my head or hidden in the code and not defined and maybe not even posted. Again, I don't remember! But it is disabled if not in the XDF.
Just take it easy and go slow with the boost until you've fully tested it or run into issues to be addressed.
Don't really know if this helps but hopefully it's something!
I don't remember any switches for that, but it's been quite a while since I set this up. I am pretty sure it's the same code I've been running since posting and that's the exact xdf file I used. I think I was pretty good at posting about implemented changes on what was altered so that people could use and adapt to my work very easily just from this thread alone. It was an incredibly simple set of changes. The crazy stuff was mostly in my head or hidden in the code and not defined and maybe not even posted. Again, I don't remember! But it is disabled if not in the XDF.
Just take it easy and go slow with the boost until you've fully tested it or run into issues to be addressed.
Don't really know if this helps but hopefully it's something!
Thanks for the efforts invested!
Mark.
Thread Starter
Supreme Member

Joined: Aug 2002
Posts: 1,169
Likes: 42
From: ARIZONA
Car: 92 Trans Am Conv
Engine: LB9
Transmission: T5
Axle/Gears: 3.08
Re: $8D-Turbo bin development thread
For sure it's been a few years. I just wasn't sure if the BIN worked with 1 BAR or 2 BAR map ... or always 2 BAR. I"ll guess the later and see how it goes. I've used the 12p code on a 165 ... slow process to dial it in, but it does work.
Thanks for the efforts invested!
Mark.
Thanks for the efforts invested!
Mark.
Should be very easy to check/edit with what I posted.
Re: $8D-Turbo bin development thread
Hey, I need some help. I have a 406 SBC, tuned and runs perfect on a 1 bar with S-AUJP. I recently added a Turbo, hot and cold side is all done. I have a 2 bar map and need a way to tune it. I'd like to stock with $8D becasue I spent alot of time getting it to run Nortstar DIS and control my fans, speed-o perfectly. Any help will be appreciated.
Thread Starter
Supreme Member

Joined: Aug 2002
Posts: 1,169
Likes: 42
From: ARIZONA
Car: 92 Trans Am Conv
Engine: LB9
Transmission: T5
Axle/Gears: 3.08
Re: $8D-Turbo bin development thread
Hey, I need some help. I have a 406 SBC, tuned and runs perfect on a 1 bar with S-AUJP. I recently added a Turbo, hot and cold side is all done. I have a 2 bar map and need a way to tune it. I'd like to stock with $8D becasue I spent alot of time getting it to run Nortstar DIS and control my fans, speed-o perfectly. Any help will be appreciated.
ive been running this since the threads inception. BUT the turbo is still in its box. Real estate is more fun right now.
Thread Starter
Supreme Member

Joined: Aug 2002
Posts: 1,169
Likes: 42
From: ARIZONA
Car: 92 Trans Am Conv
Engine: LB9
Transmission: T5
Axle/Gears: 3.08
Re: $8D-Turbo bin development thread
Lost all of my personal disassembly on this stuff so I am reverse engineering my own work right now. I've realized that the Scalars and Offsets above are incorrect. I've got new values and I'll update them up there.
I also have updated the tunerpro file to allow quick and easy scalar and offset changes for anybody that wants to run any MAP sensor with this.
Pretty easy to reverse engineer my own work, but I've forgotten a lot of the stuff I hid in there. All I wanted was to tune my car and here I am obsessed with this again...
I also have updated the tunerpro file to allow quick and easy scalar and offset changes for anybody that wants to run any MAP sensor with this.
Pretty easy to reverse engineer my own work, but I've forgotten a lot of the stuff I hid in there. All I wanted was to tune my car and here I am obsessed with this again...
Thread Starter
Supreme Member

Joined: Aug 2002
Posts: 1,169
Likes: 42
From: ARIZONA
Car: 92 Trans Am Conv
Engine: LB9
Transmission: T5
Axle/Gears: 3.08
Re: $8D-Turbo bin development thread
I, once again revisited this. I've rewritten and relocated my custom coding.
I've decided on how I'm going to work the map sensor.
First, whenever the AD is read it will jump to my subroutine that reads the 2 bar map and converts it to the same reading in KPA, but in ADC. This way the ecm can use stock like readings for everything.
Second, whenever boost is read, it will switch from oem tables for VE and timing and read new tables with the scaling for Kpa doubled. Then it will reference a second kpa reading from the 2 bar map that has been correctly scaled then halved. This leaves oem code almost completely intact and allows 2 bar map readings to be used for VE and timing, while using the 1 bar map reading for everything else concurrently.
All that needs to be done is code hooks to run the code, then a hook to swap tables and map sensors when kpa is > 100. Then this is ready for testing.
I've decided on how I'm going to work the map sensor.
First, whenever the AD is read it will jump to my subroutine that reads the 2 bar map and converts it to the same reading in KPA, but in ADC. This way the ecm can use stock like readings for everything.
Second, whenever boost is read, it will switch from oem tables for VE and timing and read new tables with the scaling for Kpa doubled. Then it will reference a second kpa reading from the 2 bar map that has been correctly scaled then halved. This leaves oem code almost completely intact and allows 2 bar map readings to be used for VE and timing, while using the 1 bar map reading for everything else concurrently.
All that needs to be done is code hooks to run the code, then a hook to swap tables and map sensors when kpa is > 100. Then this is ready for testing.
Thread Starter
Supreme Member

Joined: Aug 2002
Posts: 1,169
Likes: 42
From: ARIZONA
Car: 92 Trans Am Conv
Engine: LB9
Transmission: T5
Axle/Gears: 3.08
Re: $8D-Turbo bin development thread
Alright, if anybody is keeping score here's the Turbo code:
Above takes the Voltage from a 2 bar MAP sensor and scales it to look like a 1 bar to go through most of the OEM code for usage.
ROM:F390 ; ---------------------------------------------------------------------------
ROM:F390
ROM:F390 sScaleMapforBoostTables: ; Scales 2 bar AD to KPA, divides in half to use OEM lookups.
ROM:F390 psha
ROM:F391 pshb ; Push accumulator B into stack
ROM:F392 pshx ; Push index register into stack (low first)
ROM:F393 ldaa pRAW_2Bar_MAP_AD ; Load accumulator from memory
ROM:F396 tab ; Transfer A to B
ROM:F397 clra ; Clear
ROM:F398 ldx #329 ; Load index register from memory
ROM:F39B fdiv ; Fractional divide 16 by 16
ROM:F39C pshx ; Push index register into stack (low first)
ROM:F39D pula ; Do I need to fix this? It divides by 2 at the end? Is that even correct?!
ROM:F39E pulb ; Pull accumulator B from stack
ROM:F39F addd #2253 ; Add 16-bit to D
ROM:F3A2 lsra ; Logical shift right
ROM:F3A3 rorb ; Rotate right trough carry
ROM:F3A4 jsr loc_F3DF ; DON'T MISS THIS CODE SNIPPET BELOW!
ROM:F3A7 jsr sMakePressLoadVariable ; Jump to subroutine
ROM:F3AA staa pKpaForBoostTablesLU ; Store accumulator in memory
ROM:F3AD ldab dMAPBoostFilterCoef ; Load accumulator from memory
ROM:F3B0 ldx #pKpaForBoostTablesLU ; Load index register from memory
ROM:F3B3 jsr sLagFilter ; Jump to subroutine
ROM:F3B6 staa pKpaForBoostTablesLU ; Store accumulator in memory
ROM:F3B9 pulx ; Pull index register from stack (hi first)
ROM:F3BA pulb ; Pull accumulator B from stack
ROM:F3BB pula ; Pull accumulator A from stack
ROM:F3BC rts ; Return from subroutine
ROM:F3BC ; ---------------------------------------------------------------------------
ROM:F3BD dMAPBoostFilterCoef:fcb 240 ; DATA XREF: ROM:F3ADr This Chunk above Takes the Voltage from the 2 Bar MAP sensor and scales it to KPA, chops it in half, smooths it and levels it for VE lookups when under boost ONLY.
This Chunk Checks for Boost, then loads the correct MAP value to lookup the Correct tables with the correct value.
This Chunk swaps the OEM upper timing table for an all new one that goes up to 200kpa only when under boost.
This chunk swaps out the OEM main timing table for an all new table that goes up to 200kpa. Only when under boost.
This chunk swaps out VE tables for Boost VE tables up to 200kpa only when under boost.
ROM:F372 sScale2BarTo1Bar: ; x=(((((((((2BarADC read value/329)*65536)+2253)/256)/2)*256)-2647)/65536)*694
ROM:F372 jsr sGetADdatastreamResult
ROM:F375 staa pRAW_2Bar_MAP_AD ; store raw 2 bar adc
ROM:F378 cmpa #115 ; Compare accumulator with memory
ROM:F37A bls scalebackto_0_255 ; Branch if <= (unsigned)
ROM:F37C ldaa #255 ; Max kpa = 100kpa for oem code
ROM:F37E rts ; Return from subroutine
ROM:F37F ; ---------------------------------------------------------------------------
ROM:F37F
ROM:F37F scalebackto_0_255: ; CODE XREF: ROM:F37Aj
ROM:F37F pshb ; Push accumulator B into stack
ROM:F380 ldab #189 ; 138?
ROM:F382 mul ; multiply by 189
ROM:F383 addd #2647 ; add 2647
ROM:F386 ldx #96 ; 66?
ROM:F389 idiv ; divide by 96
ROM:F38A pshx ; Push index register into stack (low first)
ROM:F38B pula ; Pull accumulator A from stack
ROM:F38C pulb ; Pull accumulator B from stack
ROM:F38D tba ; Transfer B to A
ROM:F38E pulb ; Pull accumulator B from stack
ROM:F38F rts ; Return from subroutine
ROM:F372 jsr sGetADdatastreamResult
ROM:F375 staa pRAW_2Bar_MAP_AD ; store raw 2 bar adc
ROM:F378 cmpa #115 ; Compare accumulator with memory
ROM:F37A bls scalebackto_0_255 ; Branch if <= (unsigned)
ROM:F37C ldaa #255 ; Max kpa = 100kpa for oem code
ROM:F37E rts ; Return from subroutine
ROM:F37F ; ---------------------------------------------------------------------------
ROM:F37F
ROM:F37F scalebackto_0_255: ; CODE XREF: ROM:F37Aj
ROM:F37F pshb ; Push accumulator B into stack
ROM:F380 ldab #189 ; 138?
ROM:F382 mul ; multiply by 189
ROM:F383 addd #2647 ; add 2647
ROM:F386 ldx #96 ; 66?
ROM:F389 idiv ; divide by 96
ROM:F38A pshx ; Push index register into stack (low first)
ROM:F38B pula ; Pull accumulator A from stack
ROM:F38C pulb ; Pull accumulator B from stack
ROM:F38D tba ; Transfer B to A
ROM:F38E pulb ; Pull accumulator B from stack
ROM:F38F rts ; Return from subroutine
ROM:F390 ; ---------------------------------------------------------------------------
ROM:F390
ROM:F390 sScaleMapforBoostTables: ; Scales 2 bar AD to KPA, divides in half to use OEM lookups.
ROM:F390 psha
ROM:F391 pshb ; Push accumulator B into stack
ROM:F392 pshx ; Push index register into stack (low first)
ROM:F393 ldaa pRAW_2Bar_MAP_AD ; Load accumulator from memory
ROM:F396 tab ; Transfer A to B
ROM:F397 clra ; Clear
ROM:F398 ldx #329 ; Load index register from memory
ROM:F39B fdiv ; Fractional divide 16 by 16
ROM:F39C pshx ; Push index register into stack (low first)
ROM:F39D pula ; Do I need to fix this? It divides by 2 at the end? Is that even correct?!
ROM:F39E pulb ; Pull accumulator B from stack
ROM:F39F addd #2253 ; Add 16-bit to D
ROM:F3A2 lsra ; Logical shift right
ROM:F3A3 rorb ; Rotate right trough carry
ROM:F3A4 jsr loc_F3DF ; DON'T MISS THIS CODE SNIPPET BELOW!
ROM:F3A7 jsr sMakePressLoadVariable ; Jump to subroutine
ROM:F3AA staa pKpaForBoostTablesLU ; Store accumulator in memory
ROM:F3AD ldab dMAPBoostFilterCoef ; Load accumulator from memory
ROM:F3B0 ldx #pKpaForBoostTablesLU ; Load index register from memory
ROM:F3B3 jsr sLagFilter ; Jump to subroutine
ROM:F3B6 staa pKpaForBoostTablesLU ; Store accumulator in memory
ROM:F3B9 pulx ; Pull index register from stack (hi first)
ROM:F3BA pulb ; Pull accumulator B from stack
ROM:F3BB pula ; Pull accumulator A from stack
ROM:F3BC rts ; Return from subroutine
ROM:F3BC ; ---------------------------------------------------------------------------
ROM:F3BD dMAPBoostFilterCoef:fcb 240 ; DATA XREF: ROM:F3ADr
ROM:FB03 sSwapMAPsforTiming_B94F:
ROM:FB03 ldab pRAW_2Bar_MAP_AD ; B94F
ROM:FB06 cmpb #115 ; Compare accumulator with memory
ROM:FB08 bls loc_FB12 ; Branch if <= (unsigned)
ROM:FB0A ldab pKpaForBoostTablesLU ; Load accumulator from memory
ROM:FB0D cmpb #160 ; Compare accumulator with memory
ROM:FB0F jmp loc_B953 ; Jump
ROM:FB12 ; ---------------------------------------------------------------------------
ROM:FB12
ROM:FB12 loc_FB12: ; CODE XREF: sSwapMAPsforTiming_B94F+5j
ROM:FB12 ldab pLinearizedMAP ; Load accumulator from memory
ROM:FB14 cmpb #160 ; Compare accumulator with memory
ROM:FB16 jmp loc_B953 ; b966
ROM:FB16 ; End of function sSwapMAPsforTiming_B94F
ROM:FB16
ROM:FB03 ldab pRAW_2Bar_MAP_AD ; B94F
ROM:FB06 cmpb #115 ; Compare accumulator with memory
ROM:FB08 bls loc_FB12 ; Branch if <= (unsigned)
ROM:FB0A ldab pKpaForBoostTablesLU ; Load accumulator from memory
ROM:FB0D cmpb #160 ; Compare accumulator with memory
ROM:FB0F jmp loc_B953 ; Jump
ROM:FB12 ; ---------------------------------------------------------------------------
ROM:FB12
ROM:FB12 loc_FB12: ; CODE XREF: sSwapMAPsforTiming_B94F+5j
ROM:FB12 ldab pLinearizedMAP ; Load accumulator from memory
ROM:FB14 cmpb #160 ; Compare accumulator with memory
ROM:FB16 jmp loc_B953 ; b966
ROM:FB16 ; End of function sSwapMAPsforTiming_B94F
ROM:FB16
ROM:FB19
ROM:FB19 ; =============== S U B R O U T I N E =======================================
ROM:FB19
ROM:FB19
ROM:FB19 sSwapMainExtendedTimingTable_B966:
ROM:FB19 psha ; Push accumulator A into stack
ROM:FB1A ldaa pRAW_2Bar_MAP_AD ; Load accumulator from memory
ROM:FB1D cmpa #115 ; Compare accumulator with memory
ROM:FB1F bls loc_FB26 ; Branch if <= (unsigned)
ROM:FB21 ldx #unk_8A7A ; Load index register from memory
ROM:FB24 pula ; Pull accumulator A from stack
ROM:FB25 rts ; Return from subroutine
ROM:FB26 ; ---------------------------------------------------------------------------
ROM:FB26
ROM:FB26 loc_FB26: ; CODE XREF: sSwapMainExtendedTimingTable_B966+6j
ROM:FB26 ldx #tSparkAdvanceMainExtendedOEM ; Load index register from memory
ROM:FB29 pula ; Pull accumulator A from stack
ROM:FB2A rts ; b91a
ROM:FB2A ; End of function sSwapMainExtendedTimingTable_B966
ROM:FB2A
ROM:FB19 ; =============== S U B R O U T I N E =======================================
ROM:FB19
ROM:FB19
ROM:FB19 sSwapMainExtendedTimingTable_B966:
ROM:FB19 psha ; Push accumulator A into stack
ROM:FB1A ldaa pRAW_2Bar_MAP_AD ; Load accumulator from memory
ROM:FB1D cmpa #115 ; Compare accumulator with memory
ROM:FB1F bls loc_FB26 ; Branch if <= (unsigned)
ROM:FB21 ldx #unk_8A7A ; Load index register from memory
ROM:FB24 pula ; Pull accumulator A from stack
ROM:FB25 rts ; Return from subroutine
ROM:FB26 ; ---------------------------------------------------------------------------
ROM:FB26
ROM:FB26 loc_FB26: ; CODE XREF: sSwapMainExtendedTimingTable_B966+6j
ROM:FB26 ldx #tSparkAdvanceMainExtendedOEM ; Load index register from memory
ROM:FB29 pula ; Pull accumulator A from stack
ROM:FB2A rts ; b91a
ROM:FB2A ; End of function sSwapMainExtendedTimingTable_B966
ROM:FB2A
ROM:FB2B
ROM:FB2B ; =============== S U B R O U T I N E =======================================
ROM:FB2B
ROM:FB2B
ROM:FB2B sSwapMainTimingTable_B19A:
ROM:FB2B psha ; Push accumulator A into stack
ROM:FB2C ldaa pRAW_2Bar_MAP_AD ; Load accumulator from memory
ROM:FB2F cmpa #115 ; Compare accumulator with memory
ROM:FB31 bls loc_FB38 ; Branch if <= (unsigned)
ROM:FB33 ldx #unk_89AB ; Load index register from memory
ROM:FB36 pula ; Pull accumulator A from stack
ROM:FB37 rts ; Return from subroutine
ROM:FB38 ; ---------------------------------------------------------------------------
ROM:FB38
ROM:FB38 loc_FB38: ; CODE XREF: sSwapMainTimingTable_B19A+6j
ROM:FB38 ldx #tSparkAdvanceMainOEM ; Load index register from memory
ROM:FB3B pula ; Pull accumulator A from stack
ROM:FB3C rts ; CBF5
ROM:FB3C ; End of function sSwapMainTimingTable_B19A
ROM:FB3C
ROM:FB2B ; =============== S U B R O U T I N E =======================================
ROM:FB2B
ROM:FB2B
ROM:FB2B sSwapMainTimingTable_B19A:
ROM:FB2B psha ; Push accumulator A into stack
ROM:FB2C ldaa pRAW_2Bar_MAP_AD ; Load accumulator from memory
ROM:FB2F cmpa #115 ; Compare accumulator with memory
ROM:FB31 bls loc_FB38 ; Branch if <= (unsigned)
ROM:FB33 ldx #unk_89AB ; Load index register from memory
ROM:FB36 pula ; Pull accumulator A from stack
ROM:FB37 rts ; Return from subroutine
ROM:FB38 ; ---------------------------------------------------------------------------
ROM:FB38
ROM:FB38 loc_FB38: ; CODE XREF: sSwapMainTimingTable_B19A+6j
ROM:FB38 ldx #tSparkAdvanceMainOEM ; Load index register from memory
ROM:FB3B pula ; Pull accumulator A from stack
ROM:FB3C rts ; CBF5
ROM:FB3C ; End of function sSwapMainTimingTable_B19A
ROM:FB3C
ROM:FB3D
ROM:FB3D ; =============== S U B R O U T I N E =======================================
ROM:FB3D
ROM:FB3D
ROM:FB3D sSwapVETablesAndMAP_CBF5:
ROM:FB3D ldab pRAW_2Bar_MAP_AD ; Load accumulator from memory
ROM:FB40 cmpb #115 ; Compare accumulator with memory
ROM:FB42 bls loc_FB59 ; Branch if <= (unsigned)
ROM:FB44 ldab pKpaForBoostTablesLU ; Load accumulator from memory
ROM:FB47 ldaa pRPM ; Load accumulator from memory
ROM:FB49 cmpa #64 ; Compare accumulator with memory
ROM:FB4B bcs loc_FB53 ; Branch if carry bit set
ROM:FB4D ldx #unk_8B4D ; Load index register from memory
ROM:FB50 jmp loc_CC00 ; Jump
ROM:FB53 ; ---------------------------------------------------------------------------
ROM:FB53
ROM:FB53 loc_FB53: ; CODE XREF: sSwapVETablesAndMAP_CBF5+Ej
ROM:FB53 ldx #unk_8AA1 ; Load index register from memory
ROM:FB56 jmp loc_CC0E ; Jump
ROM:FB59 ; ---------------------------------------------------------------------------
ROM:FB59
ROM:FB59 loc_FB59: ; CODE XREF: sSwapVETablesAndMAP_CBF5+5j
ROM:FB59 ldab pNormalizedLoadMap ; Load accumulator from memory
ROM:FB5B ldaa pRPM ; Load accumulator from memory
ROM:FB5D jmp loc_CBF9 ; Jump
ROM:FB5D ; End of function sSwapVETablesAndMAP_CBF5
ROM:FB3D ; =============== S U B R O U T I N E =======================================
ROM:FB3D
ROM:FB3D
ROM:FB3D sSwapVETablesAndMAP_CBF5:
ROM:FB3D ldab pRAW_2Bar_MAP_AD ; Load accumulator from memory
ROM:FB40 cmpb #115 ; Compare accumulator with memory
ROM:FB42 bls loc_FB59 ; Branch if <= (unsigned)
ROM:FB44 ldab pKpaForBoostTablesLU ; Load accumulator from memory
ROM:FB47 ldaa pRPM ; Load accumulator from memory
ROM:FB49 cmpa #64 ; Compare accumulator with memory
ROM:FB4B bcs loc_FB53 ; Branch if carry bit set
ROM:FB4D ldx #unk_8B4D ; Load index register from memory
ROM:FB50 jmp loc_CC00 ; Jump
ROM:FB53 ; ---------------------------------------------------------------------------
ROM:FB53
ROM:FB53 loc_FB53: ; CODE XREF: sSwapVETablesAndMAP_CBF5+Ej
ROM:FB53 ldx #unk_8AA1 ; Load index register from memory
ROM:FB56 jmp loc_CC0E ; Jump
ROM:FB59 ; ---------------------------------------------------------------------------
ROM:FB59
ROM:FB59 loc_FB59: ; CODE XREF: sSwapVETablesAndMAP_CBF5+5j
ROM:FB59 ldab pNormalizedLoadMap ; Load accumulator from memory
ROM:FB5B ldaa pRPM ; Load accumulator from memory
ROM:FB5D jmp loc_CBF9 ; Jump
ROM:FB5D ; End of function sSwapVETablesAndMAP_CBF5
Thread
Thread Starter
Forum
Replies
Last Post








