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

Bin Hacking Via Tunerpro

Thread Tools
 
Search this Thread
 
Old 09-24-2013, 06:28 PM
  #1  
Supreme Member

Thread Starter
iTrader: (2)
 
bl85c's Avatar
 
Join Date: May 2007
Location: right behind you
Posts: 2,574
Likes: 0
Received 0 Likes on 0 Posts
Car: '85 maro
Engine: In the works...
Transmission: TH700 R4
Axle/Gears: 3.73 posi
Bin Hacking Via Tunerpro

There's a variety of ways to get started with your own code hack. You can go the traditional route with DOS-based programs and assemblers, or you can hack directly in TunerPro. I prefer the latter personally, it makes me feel like I'm in control of what I'm writing and it’s more accessible to the novice hacker. Once you're done there's no need for an assembler, just save and run it. You need a copy of the Motorola machine code included below, a hack of the program you're working with and patience of course.


I begin by writing the basic code out in notepad just to get a feel for how everything will work. It's not really important how it works at first because you will rewrite it several times figuring out what works, what addresses you need to reference, how to eliminate unnecessary segments, etc.


First draft
Name:  1_zps11c793d9.jpg
Views: 140
Size:  66.5 KB


Then I look through the hack for the area I want to put it, figure out what needs to be moved or erased and what I need to reference (things like rpm, tables, constants and so on) then tidy up the first draft of the hack in notepad.

Useless Power Steering code looks like a good place to put the hack
Name:  2_zps085096bc.jpg
Views: 124
Size:  60.6 KB

Second draft with added info
Name:  3_zpsc22e1863.jpg
Views: 110
Size:  73.9 KB


Once I'm convinced it will run (and it often won't first time out) I open up TunerPro, create a table spanning the area I'm working with and start writing the string out. It helps to have the tables displayed bottom down instead of the standard view- go to Tools, Preferences, then uncheck Reverse Rows.

Right click, insert new XDF parameter
Name:  4_zps71951017.jpg
Views: 138
Size:  51.9 KB

Select table
Name:  5_zps2cb34135.jpg
Views: 97
Size:  53.5 KB

Add the table Adress
Name:  6_zps4e315de2.jpg
Views: 115
Size:  68.7 KB

Add the number of lines of code at Number of Rows
Name:  7_zps94daf942.jpg
Views: 105
Size:  68.3 KB

Make sure it’s in Hex Digits
Name:  8_zps7345463f.jpg
Views: 107
Size:  68.6 KB

Begin writing the code string out
Name:  9_zps5f49ce2d.jpg
Views: 113
Size:  79.2 KB


Save, program, test and diagnose the hack if you run into a problem. An ECM bench really helps you move from beta testing to on the road quickly, but you don't necessarily need one.

Incorrect command found
Name:  10_zpsed0a9a7b.jpg
Views: 139
Size:  73.8 KB

Corrected command
Name:  11_zps4a28274d.jpg
Views: 106
Size:  73.7 KB


After a while you will memorize the machine code nomenclature and programming rules and it basically becomes another language, albeit a strange one. Carefully study how the program was originally written for clues on how to properly write a routine and you will graduate from simple modifications like changing which sensor a routine uses to more complex things like adding your own tables and writing your own multi-stage rev-cut routines. As always the community is here to answer your questions.

A few tips- consider rewriting the bin as a relocateable file using names for routines, that way you can move routines wherever you need by referring to names instead of addresses. This is on my to-do list with my current program, however it’s not necessary and an effective hack can be written with addresses, it just takes more time to calculate the space between points in the bin (especially using hex numerals). If you’re working with a tight bin that doesn’t have much empty space you can remove some unnecessary or inoperable routines (the factory test and power steering routine in $6E are good examples) and shuffle some things around for extra space but if you have enough empty space in the bin create a subroutine (JSR command) that piggybacks of the existing work to an unused area of the bin to free up clock cycles.

Last edited by bl85c; 09-24-2013 at 09:02 PM.
Old 09-24-2013, 06:28 PM
  #2  
Supreme Member

Thread Starter
iTrader: (2)
 
bl85c's Avatar
 
Join Date: May 2007
Location: right behind you
Posts: 2,574
Likes: 0
Received 0 Likes on 0 Posts
Car: '85 maro
Engine: In the works...
Transmission: TH700 R4
Axle/Gears: 3.73 posi
Re: Bin Hacking Via Tunerpro

Most of the files here...
Attached Files
File Type: zip
Bin_Hacking_Via_TunerPro.zip (519.5 KB, 43 views)

Last edited by bl85c; 09-24-2013 at 07:59 PM.
Old 09-24-2013, 06:29 PM
  #3  
Supreme Member

Thread Starter
iTrader: (2)
 
bl85c's Avatar
 
Join Date: May 2007
Location: right behind you
Posts: 2,574
Likes: 0
Received 0 Likes on 0 Posts
Car: '85 maro
Engine: In the works...
Transmission: TH700 R4
Axle/Gears: 3.73 posi
Re: Bin Hacking Via Tunerpro

We can't upload Docx files???

Last edited by bl85c; 09-24-2013 at 07:58 PM.
Old 09-25-2013, 08:52 AM
  #4  
Supreme Member

 
Dominic Sorresso's Avatar
 
Join Date: Dec 2001
Location: Bartlett, IL
Posts: 1,994
Received 11 Likes on 10 Posts
Car: 92 ZR-1
Engine: LT-5
Transmission: ZF-6
Axle/Gears: SuperDana 44 4.10
Re: Bin Hacking Via Tunerpro

Thank you for this. Bin hacking is one of those things I have on my to do list. I don't have any coding experience but I have created or modified parameters using TPRT.
Old 09-28-2013, 11:43 AM
  #5  
Supreme Member

Thread Starter
iTrader: (2)
 
bl85c's Avatar
 
Join Date: May 2007
Location: right behind you
Posts: 2,574
Likes: 0
Received 0 Likes on 0 Posts
Car: '85 maro
Engine: In the works...
Transmission: TH700 R4
Axle/Gears: 3.73 posi
Re: Bin Hacking Via Tunerpro

No prob, I'd like to see more people hacking. I know there's some good ideas out there waiting to be put to use.
Old 02-05-2014, 05:07 PM
  #6  
Senior Member

 
34blazer's Avatar
 
Join Date: May 2010
Location: Alamogordo, NM
Posts: 848
Likes: 0
Received 0 Likes on 0 Posts
Car: '86 Grand National
Engine: LZ9????
Transmission: 2004R
Axle/Gears: 3.42
Re: Bin Hacking Via Tunerpro

THANK YOU! I cant believe I missed this, but saved to favs. Ive been wanting to patch in the anti-lag to see if I could get it to work. Once I have more time I will post any questions I have. Two questions up front.... How will I know if there is enough space in the calibration to input the patch? I know I can replace a routine but will I need to replace it with something of equal size for checksum?
Old 02-06-2014, 05:06 PM
  #7  
Supreme Member

Thread Starter
iTrader: (2)
 
bl85c's Avatar
 
Join Date: May 2007
Location: right behind you
Posts: 2,574
Likes: 0
Received 0 Likes on 0 Posts
Car: '85 maro
Engine: In the works...
Transmission: TH700 R4
Axle/Gears: 3.73 posi
Re: Bin Hacking Via Tunerpro

Depends on the ecm. '730s have tons of empty space, the '165 is a little tighter. It's good practice to fill all unused space but not necessary.
Old 02-06-2014, 05:08 PM
  #8  
Senior Member

 
34blazer's Avatar
 
Join Date: May 2010
Location: Alamogordo, NM
Posts: 848
Likes: 0
Received 0 Likes on 0 Posts
Car: '86 Grand National
Engine: LZ9????
Transmission: 2004R
Axle/Gears: 3.42
Re: Bin Hacking Via Tunerpro

Originally Posted by bl85c
Depends on the ecm. '730s have tons of empty space, the '165 is a little tighter. It's good practice to fill all unused space but not necessary.
That's where I left off, not sure what or where to look for empty space. If you gave me a starting address I may be able to figure it out.

Thanks!
Old 02-06-2014, 05:14 PM
  #9  
Supreme Member

Thread Starter
iTrader: (2)
 
bl85c's Avatar
 
Join Date: May 2007
Location: right behind you
Posts: 2,574
Likes: 0
Received 0 Likes on 0 Posts
Car: '85 maro
Engine: In the works...
Transmission: TH700 R4
Axle/Gears: 3.73 posi
Re: Bin Hacking Via Tunerpro

What's the ECM and mask?
Old 02-06-2014, 07:07 PM
  #10  
Senior Member

 
34blazer's Avatar
 
Join Date: May 2010
Location: Alamogordo, NM
Posts: 848
Likes: 0
Received 0 Likes on 0 Posts
Car: '86 Grand National
Engine: LZ9????
Transmission: 2004R
Axle/Gears: 3.42
Re: Bin Hacking Via Tunerpro

'730 S_AUJP V4
Old 02-06-2014, 08:39 PM
  #11  
Supreme Member

Thread Starter
iTrader: (2)
 
bl85c's Avatar
 
Join Date: May 2007
Location: right behind you
Posts: 2,574
Likes: 0
Received 0 Likes on 0 Posts
Car: '85 maro
Engine: In the works...
Transmission: TH700 R4
Axle/Gears: 3.73 posi
Re: Bin Hacking Via Tunerpro

I am not terribly familiar with the '730, but look into the SRAM mod (S_AUJP may have it already) and open up the hex editor and start looking for large sections of 'FF' or '00', usually at the end of the bin as those will be unused space. The '730 can address larger chips (SRAM) than the 128K originally used.
Old 02-08-2014, 08:53 AM
  #12  
Supreme Member

iTrader: (1)
 
JP86SS's Avatar
 
Join Date: Apr 2004
Location: Browns Town
Posts: 3,178
Likes: 0
Received 3 Likes on 3 Posts
Car: 86 Monte SS (730,$8D,G3,AP,4K,S_V4)
Engine: 406 Hyd Roller 236/242
Transmission: 700R4 HomeBrew, 2.4K stall
Axle/Gears: 3:73 Posi, 7.5 Soon to break
Re: Bin Hacking Via Tunerpro

Adding to the end is best.
Looking in the XDF (or the actual bin) for the end of the calibration section or the code section.
Finding the unused RAM storage spots are the most troublesome because they can appear to be unused but are actually used by a 16 bit value (only calls out the address of the starting byte)
The checksum end of things ended up being the easy part.

to reiterate what was stated above, Adding code or a static values work pretty easy once you get the hang of it, be careful adding into the center of an existing bin as there are "indexed" jumps to positions within the program.
They are jumped to by position not by "Lable" or address so to speak.
Adding to the middle can cause the locations to shift and not operate correctly.

When we made the S_AUJP V4 "re-locatable", All of these indexed jumps were changed to "lables" so the jumps would always find the correct place.
Then adding or moving things around got much easier to do.
The main routines are configured that way in $8D, others may/may not be as bad.

There is a thread in the stickys called "Source Code for Dummies" that goes through the process of getting bin files to the edit-able state and then how to compile it back to a runable bin file.
It is time consuming and very confusing at first, but ask Q's and others will help keep you going.
Jp
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Mark_ZZ3
TPI
15
05-24-2018 01:02 PM
antman89iroc
DIY PROM
36
01-31-2016 08:42 AM
Rocket-Doc
TBI
1
11-14-2015 02:08 PM
ULTM8Z
DIY PROM
12
10-02-2015 01:25 PM
z28joe2
Engine/Drivetrain/Suspension Wanted
2
09-28-2015 05:54 PM



Quick Reply: Bin Hacking Via Tunerpro



All times are GMT -5. The time now is 12:01 PM.