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

Trying to add/modify code

Thread Tools
 
Search this Thread
 
Old Feb 28, 2005 | 03:49 PM
  #1  
eric305TPI's Avatar
Thread Starter
TGO Supporter
 
Joined: Oct 2003
Posts: 302
Likes: 0
From: Houston / The Woodlands, TX
Car: 82 ElCamino, looking for a 3rd gen
Engine: 305 TPI(427SB in progress) 730 $8D
Transmission: THM350 (Getting a 4L80E soon)
Axle/Gears: 10 Bolt w/ 2.43 gears :(
Trying to add/modify code

I have tried to add the following code to my $8d aujp bin, but have had no success getting it to display in the aldl. What Hex addresses would the following code be inserted at? I'm sure it is something simple I am doing wrong as I am just starting to try to get into the code of the ECM.


code:--------------------------------------------------------------------------------
CC90: BD A0 00 ;JSR A000 (hook to run the custom code)

Then:

A000: 86 00 ;LDAA 00 (select mux ch 0)
A002: BD E2 DC ;JSR E2DC (A/D mux ch 0 read)
A005: 97 34 ;STAA 34 (store mux ch 0 to mem $34)
A007: ce 00 e2 ;LDX 00E2 (replaces command we overwrote with the hook at CC90)
A00A: 39 ;RTS

Finally:

8911: 00 34 ;alters mem spot output in ALDL stream for FPV

Thanks
Reply
Old Feb 28, 2005 | 06:58 PM
  #2  
RBob's Avatar
Moderator
iTrader: (1)
 
Joined: Mar 2002
Posts: 18,432
Likes: 233
From: Chasing Electrons
Car: check
Engine: check
Transmission: check
Code looks OK. Did you try it with the engine running? I don't believe that section of code runs unless the engine is running. I may have missed something, just not sure.

RBob.
Reply
Old Feb 28, 2005 | 07:12 PM
  #3  
eric305TPI's Avatar
Thread Starter
TGO Supporter
 
Joined: Oct 2003
Posts: 302
Likes: 0
From: Houston / The Woodlands, TX
Car: 82 ElCamino, looking for a 3rd gen
Engine: 305 TPI(427SB in progress) 730 $8D
Transmission: THM350 (Getting a 4L80E soon)
Axle/Gears: 10 Bolt w/ 2.43 gears :(
Yes it was tried KOEO AND KOER

code:--------------------------------------------------------------------------------
CC90: BD A0 00 ;JSR A000 (hook to run the custom code) <-----this starts at Hex 0C90 ?

Then:

A000: 86 00 ;LDAA 00 (select mux ch 0)
A002: BD E2 DC ;JSR E2DC (A/D mux ch 0 read)
A005: 97 34 ;STAA 34 (store mux ch 0 to mem $34)
A007: ce 00 e2 ;LDX 00E2 (replaces command we overwrote with the hook at CC90)
A00A: 39 ;RTS <----- this goes from Hex 0A00 through 0A0A ?

Finally:

8911: 00 34 ;alters mem spot output in ALDL stream for FPV <----- this starts at Hex 0911 ?

I'm just getting started at this and reading/learning how to do this.

Last edited by eric305TPI; Feb 28, 2005 at 07:19 PM.
Reply
Old Feb 28, 2005 | 08:06 PM
  #4  
RBob's Avatar
Moderator
iTrader: (1)
 
Joined: Mar 2002
Posts: 18,432
Likes: 233
From: Chasing Electrons
Car: check
Engine: check
Transmission: check
OK, I see the problem. Your offsets into the EPROM are incorrect. Lets take this one as an example:

CC90: BD A0 00 ;JSR A000 (hook to run the custom code) <-----this starts at Hex 0C90 ?
Once the EPROM is placed into the ECM it is offset by $8000 . IOW, address 0 in the EPROM is now address $8000. And address 1 in the EPROM is address $8001.

Taking it to the next step as in the example, address $CC90 is $4C90 in the EPROM. Take the ECM address of $CC90 and subtract $8000 from it ($CC90 - $8000 = $4C90), use the windoze calculator in hex mode.

That is the bin location to edit. And need to do the same with the rest of the locations. $A000 - $8000 = $2000 in the bin/EPROM.

Note that the offset ($8000 in this case) varies according to the ECM/mask being used.

RBob.
Reply
Old Feb 28, 2005 | 08:23 PM
  #5  
eric305TPI's Avatar
Thread Starter
TGO Supporter
 
Joined: Oct 2003
Posts: 302
Likes: 0
From: Houston / The Woodlands, TX
Car: 82 ElCamino, looking for a 3rd gen
Engine: 305 TPI(427SB in progress) 730 $8D
Transmission: THM350 (Getting a 4L80E soon)
Axle/Gears: 10 Bolt w/ 2.43 gears :(
I figured that I forgot about the offset.

Thanks for the help and the reminder.

Last edited by eric305TPI; Feb 28, 2005 at 08:27 PM.
Reply
Old Mar 1, 2005 | 01:02 AM
  #6  
Z69's Avatar
Z69
Supreme Member
 
Joined: Sep 2003
Posts: 1,409
Likes: 1
From: Texas
what bcc are you using ?
Reply
Old Mar 2, 2005 | 12:15 AM
  #7  
eric305TPI's Avatar
Thread Starter
TGO Supporter
 
Joined: Oct 2003
Posts: 302
Likes: 0
From: Houston / The Woodlands, TX
Car: 82 ElCamino, looking for a 3rd gen
Engine: 305 TPI(427SB in progress) 730 $8D
Transmission: THM350 (Getting a 4L80E soon)
Axle/Gears: 10 Bolt w/ 2.43 gears :(
AUJP is what I have based all of my stuff on.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
89-IROCZ-5.0TPI
TPI
10
Feb 22, 2022 09:26 PM
Falcon50
DFI and ECM
81
Aug 22, 2020 03:26 PM
racereese
Tech / General Engine
14
Oct 3, 2015 03:46 PM
Luigytico09
TPI
0
Oct 1, 2015 08:46 AM
dusterbd
TPI
0
Sep 29, 2015 08:40 AM




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