DIY PROM Do It Yourself PROM chip burning help. No PROM begging. No PROMs for sale. No commercial exchange. Not a referral service.

Source Code Confusion?!?!?

Thread Tools
 
Search this Thread
 
Old Jun 1, 2010 | 08:27 PM
  #1  
bl85c's Avatar
Thread Starter
Supreme Member
iTrader: (2)
 
Joined: May 2007
Posts: 2,574
Likes: 0
From: right behind you
Car: '85 maro
Engine: In the works...
Transmission: TH700 R4
Axle/Gears: 3.73 posi
Source Code Confusion?!?!?

Can someone clue me in to why this does the opposite of what I want? Spark goes back to normal in pwr enrich instead of retarding.

CB6A: LDAB L006A ; Load MPH
CB6C: CMPB LC02A ; Compare to Max Speed for Retard
CB6F: BHI LCB7E ; Branch if Higher
CB71: BRCLR L0044,$#20,LCB7E ; Branch if b5 Not Set
CB75: LDD L011E ; Load Total Spark Val
CB78: SUBB LC029 ; Subtract Launch Retard
CB7B: STD L011E ; Save to Total Spak Val
Reply
Old Jun 2, 2010 | 12:37 AM
  #2  
jim_in_dorris's Avatar
Member
 
Joined: Dec 2007
Posts: 152
Likes: 0
Re: Source Code Confusion?!?!?

Ok, I could be completely wrong here, but it looks like this is your problem.

CB75: LDD L011E ; Load Total Spark Val This loads the double accumulator with
the total spark value.

CB78: SUBB LC029 ; Subtract Launch Retard This subtracts the launch retard from
accumulator B.

CB7B: STD L011E ; Save to Total Spak Val And this stores the double accumulator
back to total spark value.

I think you need to do this

CB78: SUBD LC029 ; Subtract Launch Retard

Just a guess on my part, but I would say that the B accumulator is not part of the Double accumulator, and you need to double check this as I don't have the pink book.
Reply
Old Jun 2, 2010 | 05:00 AM
  #3  
dimented24x7's Avatar
Supreme Member
iTrader: (2)
 
Joined: Jan 2002
Posts: 9,962
Likes: 5
From: Moorestown, NJ
Car: 88 Camaro SC
Engine: SFI'd 350
Transmission: TKO 500
Axle/Gears: 9-bolt w/ 3.23's
Re: Source Code Confusion?!?!?

The launch spark retard is intended to only be active when the car is taking off from a stop. Similar logic has been used in other PCMs and ECMs. The intent being to reduce the SA during low RPM, high load conditions. This is not intended to continously provide retard, but transient retard during hard low speed load transitions. The MPH theshold ensures that it will only be active for a period of time. Im not familiar with the V6 code, but there are probably TPS and other qualifications as well.

Perhapse Im not fully understanding the question, but if you want retard in PE, use the PE spark retard table.
Reply
Old Jun 2, 2010 | 05:03 AM
  #4  
dimented24x7's Avatar
Supreme Member
iTrader: (2)
 
Joined: Jan 2002
Posts: 9,962
Likes: 5
From: Moorestown, NJ
Car: 88 Camaro SC
Engine: SFI'd 350
Transmission: TKO 500
Axle/Gears: 9-bolt w/ 3.23's
Re: Source Code Confusion?!?!?

BTW, is this code that you wrote? Or is this from a stock mask as the title implies?

Jim is right that the SUBB will not produce a carry if the SA is a 16 bit value stored in the AB accumulator. Also keep in mind that the SUBD statement will need, I think, one more byte of program and calibration address space if you wrote the code as a patch.

Last edited by dimented24x7; Jun 2, 2010 at 05:06 AM.
Reply
Old Jun 2, 2010 | 08:10 PM
  #5  
bl85c's Avatar
Thread Starter
Supreme Member
iTrader: (2)
 
Joined: May 2007
Posts: 2,574
Likes: 0
From: right behind you
Car: '85 maro
Engine: In the works...
Transmission: TH700 R4
Axle/Gears: 3.73 posi
Re: Source Code Confusion?!?!?

This is what I wrote. It was a compromise based on the space I have. I should probably add something to round off the A accumulator but no space. It actually does what I want, but not when I want. It retards out of PE and goes back to normal in PE. I've changed the command to branch if set but it still does the same thing?!?!

Last edited by bl85c; Jun 2, 2010 at 08:44 PM.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Galaxie500XL
History / Originality
42
Feb 1, 2020 04:53 AM
1Aauto
Sponsored Vendors
1
Jan 15, 2016 06:26 AM
bubbaz28
Suspension and Chassis
10
Sep 18, 2015 02:09 PM
1Aauto
Sponsored Vendors
0
Sep 10, 2015 02:02 PM




All times are GMT -5. The time now is 09:08 AM.