Go Back   Third Generation F-Body Message Boards > Tech Boards > DIY PROM

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

Welcome to ThirdGen.org!
Welcome to ThirdGen.org.

You are currently viewing our forum as a guest, which gives you limited access to view most discussions and access our other features. By joining our community, at no cost, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is free, fast and simple, join the ThirdGen.org community today!


Reply
 
Thread Tools
Old 10-13-2009, 03:33 AM   #1
Moderator
 
Join Date: Jan 2002
Location: Moorestown, NJ
Posts: 8,600
Car: 88 Camaro SC
Engine: SFI'd 350
Transmission: TKO 500
Axle/Gears: Yet another 9-bolt w/ 2.77's

Classifieds Rating: (0)
Send a message via AIM to dimented24x7
Applying a code patch

Ive gotten some requests to show how to apply a code patch. Much of RBobs patch method demo applys here as well. The computer we will be using as an example is the '7427 and $0D mask.

The first step to applying a patch is to first assemble the patch you will be using into an .S19 file. The patch here will be for applying cool fan control to a $0D. The best assembler for the 68HC11 by far is the ASM11.EXE dos based assembler from MGTEK. Copy the .ASM file with the code and the ASM11 assembler to a directory easily accessable in a DOS command window within windows. The following commands are for Win XP, but still should work under Vista as it still has the legacy DOS shell (in theory).

Go to your start bar and open the run dialog box and type "cmd". This will bring up the DOS shell. Navigate to the directory that contains the patch and the assembler. If you type in 'ASM11', with nothing else, you will get a list of the available options. One very important one is "-l". This gives you a listing showing all the addresses of the tables that are added by the patch. You will need these when you update your XDF to include the additional info added by the patch. To assemble the patch, type: "ASM11 [patch name].asm -l". This will assemble the patch into an .S19 file and generate a list with the relavent information.

Ive attached a screenshot of this below. In this case, the patch name is CFC.asm, or cool fan control.
This ad is not displayed to registered members.
Register your free account today and become a member on ThirdGen!
Attached Images
File Type: gif screen1.GIF (22.2 KB, 15 views)
__________________
Nothing can be accomplished without passion… unless there’s money involved.

Last edited by dimented24x7; 10-13-2009 at 04:00 AM.
dimented24x7 is offline vBGarage Page   Reply With Quote
Sponsored Links
Registered users do not see this ad.
Click here to register for free!
Old 10-13-2009, 03:46 AM   #2
Moderator
 
Join Date: Jan 2002
Location: Moorestown, NJ
Posts: 8,600
Car: 88 Camaro SC
Engine: SFI'd 350
Transmission: TKO 500
Axle/Gears: Yet another 9-bolt w/ 2.77's

Classifieds Rating: (0)
Send a message via AIM to dimented24x7
Re: Applying a code patch

You will see that the assembler will return the number of errors and warnings. There should be zero errors and warnings if the patch is written correctly.

The next step is to apply the patch. Select a BIN that the patch will be applied to. In this case, it will be BINPAT.ASM, which is a stock $0D binary. Copy that bin into the same folder that you used before and again open the DOS shell if you closed it. The program that will apply the patch is "s19_pat.exe", which was shown in the patch method demo.

To apply the patch, type "s19_pat [nameofpatch].s19 0x[offset in hex] [nameofbin].bin" This will apply the patch to the binary. In this case, the offset should be 0 when applying the cool fan patch as the patch already has the proper address offsets included within it. Once you do this, the bin is now patched. The last step is to open the bin in tunerpro, and SAVE the bin. The reason you must do this is to update the checksum. The patched bin has additional data that differs from the source, but the checksum is not updated in the patching process. If you run it right away, you will get a flashing SES.

A screenshot showing the s_19 patch command is shown below:
Attached Images
File Type: gif screen2.GIF (19.7 KB, 8 views)

Last edited by dimented24x7; 10-13-2009 at 03:58 AM.
dimented24x7 is offline vBGarage Page   Reply With Quote
Old 10-13-2009, 03:56 AM   #3
Moderator
 
Join Date: Jan 2002
Location: Moorestown, NJ
Posts: 8,600
Car: 88 Camaro SC
Engine: SFI'd 350
Transmission: TKO 500
Axle/Gears: Yet another 9-bolt w/ 2.77's

Classifieds Rating: (0)
Send a message via AIM to dimented24x7
Re: Applying a code patch

Lastly, here are the files that I mentioned. The Zip includes the CFC assembly of the cool fan patch, the ASM11.EXE, and the s19_pat.exe. Open the ZIP with firefox (IE does not work).

The cool fan patch for the $0D is functional. ONLY apply this to a $0D binary. This will not work for the $0E or any other derivatives of the masks that run on the TBI PCMs. See the list file from the ASM that was generated for the addresses of the new tables that control the fan that you will need to add into your XDF that you are using (if you need help, just reply and I can walk you through that part as well). The fan is operated via the CCP output. This output should be able to drive most smaller 30A and below relays. But, if your using a big relay to drive dual fans or a large high current fan, its best to use a smaller driving relay ahead of the main relay to avoid overloading the CCP output.
Attached Files
File Type: zip CoolFanPatch.zip (79.9 KB, 7 views)
dimented24x7 is offline vBGarage Page   Reply With Quote
Old 10-13-2009, 07:51 PM   #4
???
Senior Member
 
Join Date: Aug 2006
Posts: 430

Classifieds Rating: (3)
Re: Applying a code patch

very cool. seems like i a lot of stuff about the 7427 lately.


i need to try this patching stuff
??? is offline vBGarage Page   Reply With Quote
Old 10-13-2009, 08:54 PM   #5
Member
 
Drumer919's Avatar
 
Join Date: Mar 2009
Location: Columbus, OH
Posts: 185
Car: 1995 S10
Engine: 5.7 L31
Transmission: 4L60E
Axle/Gears: 8.8 Ford/3.73 posi

Classifieds Rating: (0)
Re: Applying a code patch

Thank you Adam.
__________________
Dan - ASE certified-A1, A4, A5, A8
This is for all things four wheeled and fast...
95 S10 ecsb-350ci, Ported 906 vortec's, L31 intake, 9.5:1, Crane(.484/.512 216/228 112LSA), Hooker Super comps, 2.5" ORY, E-cutout, 40 series flow, 4L60E, 8.8 f*rd posi w/ 3.73's, 7427 PCM, MPFI mode, $OD, WB02. - Daily Driven!
Drumer919 is offline vBGarage Page   Reply With Quote


Reply

Go Back   Third Generation F-Body Message Boards > Tech Boards > DIY PROM

Tags
apply, code, dos, p, patch
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

 






1982 Camaro '82 || 1983 Camaro '83 || 1984 Camaro '84 || 1985 Camaro '85 || 1986 Camaro '86 || 1987 Camaro '87 || 1988 Camaro '88 || 1989 Camaro '89 || 1990 Camaro '90 || 1991 Camaro '91 || 1992 Camaro '92


All times are GMT -5. The time now is 06:45 PM.


Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
All content copyright © 1997 - 2009 ThirdGen.org. All rights reserved. No part of this website may be reproduced without the expressed, documented, and written consent of ThirdGen.org's Administrators.