Trying to add/modify code
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
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
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.
RBob.
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.
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.
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:
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.
CC90: BD A0 00 ;JSR A000 (hook to run the custom code) <-----this starts at Hex 0C90 ?
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.
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.
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.
Thread
Thread Starter
Forum
Replies
Last Post




