EEC V file conversion

All hardware related, disassembly / programming and code discussions belong here.
jsa
Posts: 274
Joined: 2021 Feb 16, 15:46
Location: Australia
Vehicle Information: 95 Escort RS Cosworth
2.0 YBP
CARD / QUIK / COSY / ANTI
GHAJ0
SMD-190 / SMD-490 EEC-IV

Binary Editor
ForDiag

Re: EEC V file conversion

Unread post by jsa »

Paste the code that references the word at 8f8d6.

Paste the code that show sjmp to 8FB39 is a valid destination.

Cross post with yours, but still valid.
Suss, sorry aussie slang.
jsa
Posts: 274
Joined: 2021 Feb 16, 15:46
Location: Australia
Vehicle Information: 95 Escort RS Cosworth
2.0 YBP
CARD / QUIK / COSY / ANTI
GHAJ0
SMD-190 / SMD-490 EEC-IV

Binary Editor
ForDiag

Re: EEC V file conversion

Unread post by jsa »

Code: Select all

##SCA 8f951   DID NOT PRODUCE ANY RESULT
##SCA 8f956   DID NOT PRODUCE ANY RESULT

Code: Select all

8f951: ff                 ???   

8f952: 00,00              word      0
8f954: 00,00              word      0

8f956: 00,00,00           ???   
What do you think of this?
BOOSTEDEVERYTHING
Posts: 235
Joined: 2023 Sep 06, 13:11
Location: Charlotte NC , USA
Vehicle Information: 1999 Ford Ranger with 2000 Explorer v8 swap, FLN0
2003 Ford F150 Harley Davidson, Built 5.4L SOHC with 3.4L Whipple and Built 4R100

Re: EEC V file conversion

Unread post by BOOSTEDEVERYTHING »

Well, after removing the SCA 8f8d8 and carefully going through the code, I found several references to the word 115a or address 1115a rather. But it looks to me like the ad call is for ldzbw and the 08 would make whatever the ad was pointing to =8. So now I am a bit confused. So it does somewhat look like code but not complete code.
BOOSTEDEVERYTHING
Posts: 235
Joined: 2023 Sep 06, 13:11
Location: Charlotte NC , USA
Vehicle Information: 1999 Ford Ranger with 2000 Explorer v8 swap, FLN0
2003 Ford F150 Harley Davidson, Built 5.4L SOHC with 3.4L Whipple and Built 4R100

Re: EEC V file conversion

Unread post by BOOSTEDEVERYTHING »

the 8f951 to 8f956 looks to be fill to me. or an address pointing to zero
BOOSTEDEVERYTHING
Posts: 235
Joined: 2023 Sep 06, 13:11
Location: Charlotte NC , USA
Vehicle Information: 1999 Ford Ranger with 2000 Explorer v8 swap, FLN0
2003 Ford F150 Harley Davidson, Built 5.4L SOHC with 3.4L Whipple and Built 4R100

Re: EEC V file conversion

Unread post by BOOSTEDEVERYTHING »

The other thing that confuses me is that there doesnt seem to be anything to start the next subroutine....

Code: Select all

8f8d5: f0                 ret                    return;

8f8d6: ad,08              word    8ad
8f8d8: ad,08              word    8ad
8f8da: 5a,11              word   115a
8f8dc: b8,22              word   22b8
8f8de: 5a,11              word   115a

>>>>>>>> Seems like ther should be a push command or other Subroutine "starter" command, seems to start mid-routine

8f8e0: 5a,11,00,00        sb3b  R0,R0,[R10++]    R0 = [HSO_IntPend1];
Sorry, This is after adding a word command to the dir file for 8f8d6 8f8de, Also there are no calls to 8f8e0
BOOSTEDEVERYTHING
Posts: 235
Joined: 2023 Sep 06, 13:11
Location: Charlotte NC , USA
Vehicle Information: 1999 Ford Ranger with 2000 Explorer v8 swap, FLN0
2003 Ford F150 Harley Davidson, Built 5.4L SOHC with 3.4L Whipple and Built 4R100

Re: EEC V file conversion

Unread post by BOOSTEDEVERYTHING »

Code: Select all

8f8d5: f0                 ret                    return;

8f8d6: ad,08              word    8ad
8f8d8: ad,08              word    8ad
8f8da: 5a,11              word   115a
8f8dc: b8,22              word   22b8
8f8de: 5a,11              word   115a
8f8e0: 5a,11              word   115a
8f8e2: 00,00              word      0
8f8e4: 5a,11              word   115a

   Sub_8f8e6:
8f8e6: a1,40,0f,36        ldw   R36,f40          R36 = f40;
But there are calls to Sub_8f8e6
But I do not understand the repetitive words, the 115a and 8ad if the above are words, So some of it must be code, Correct?
jsa
Posts: 274
Joined: 2021 Feb 16, 15:46
Location: Australia
Vehicle Information: 95 Escort RS Cosworth
2.0 YBP
CARD / QUIK / COSY / ANTI
GHAJ0
SMD-190 / SMD-490 EEC-IV

Binary Editor
ForDiag

Re: EEC V file conversion

Unread post by jsa »

BOOSTEDEVERYTHING wrote: 2024 Mar 27, 20:48 The other thing that confuses me is that there doesnt seem to be anything to start the next subroutine....

Code: Select all


8f8d6: ad,08              word    8ad
8f8d8: ad,08              word    8ad
8f8da: 5a,11              word   115a
8f8dc: b8,22              word   22b8
8f8de: 5a,11              word   115a
       5a,11,
       00,00        sb3b  R0,R0,[R10++]    R0 = [HSO_IntPend1];
Sorry, This is after adding a word command to the dir file for 8f8d6 8f8de
Not sure what you are referring to as the next subroutine.
No worries adding the word command to visualise what is going on.
To me, the part that is still commanded with a scan as code stands out like a sore thumb as part of the word/structure.

Looking at that part without any commands, a pattern is evident.
Find the code referencing the word 8f8d6 and paste it up here.

Code: Select all

8f8d6: ad,08              word    8ad

8f8d8: ad,08,5a,11        ???   

8f8dc: b8,22              word   22b8

8f8de: 5a,11,5a,11,00,00,5a,11  ???  
>>>>>>>> Seems like ther should be a push command or other Subroutine "starter" command, seems to start mid-routine
There can be code stubs, but treating them with great suspicion is the correct approach. More likely to be something else.
jsa
Posts: 274
Joined: 2021 Feb 16, 15:46
Location: Australia
Vehicle Information: 95 Escort RS Cosworth
2.0 YBP
CARD / QUIK / COSY / ANTI
GHAJ0
SMD-190 / SMD-490 EEC-IV

Binary Editor
ForDiag

Re: EEC V file conversion

Unread post by jsa »

BOOSTEDEVERYTHING wrote: 2024 Mar 27, 21:00 But there are calls to Sub_8f8e6
Cross post again, so continuing from my previous.

Good, makes it clear cut as code.
But I do not understand the repetitive words, the 115a and 8ad if the above are words, So some of it must be code, Correct?
Prove it one way or the other, post up the code referencing 8f8d6, we can sift through it.
BOOSTEDEVERYTHING
Posts: 235
Joined: 2023 Sep 06, 13:11
Location: Charlotte NC , USA
Vehicle Information: 1999 Ford Ranger with 2000 Explorer v8 swap, FLN0
2003 Ford F150 Harley Davidson, Built 5.4L SOHC with 3.4L Whipple and Built 4R100

Re: EEC V file conversion

Unread post by BOOSTEDEVERYTHING »

Code: Select all

 Sub_8f959:
8f959: 10,08              rombk 8
8f95b: 6f,37,d6,f8,38     ml2w  R38,[R36+f8d6]   lR38 *= [R36+8f8d6];
8f960: 0d,01,38           shldw R38,1            lR38 <<= 1;
8f963: d3,03              jnc   8f968            if (B15_R3a = 1)  {
8f965: bd,ff,3a           ldsbw R3a,ff           swR3a = ff; }
8f968: c3,37,0a,11,3a     stw   R3a,[R36+110a]   [R36+1110a] = R3a;
8f96d: 09,01,36           shlw  R36,1            R36 <<= 1;
8f970: c3,37,42,0f,3a     stw   R3a,[R36+f42]    [R36+10f42] = R3a;
8f975: f0                 ret                    return;

Code: Select all

02500: c3,4c,21,4e        stw   R4e,[R4c+21]     [R4c+21] = R4e;
02504: 01,4e              clrw  R4e              R4e = 0;
02506: 10,08              rombk 8
02508: a3,4f,d6,f8,50     ldw   R50,[R4e+f8d6]   R50 = [R4e+8f8d6];
0250d: 05,50              decw  R50              R50--;
0250f: db,02              jc    02513            if (R50 < 0)  {
02511: 01,50              clrw  R50              R50 = 0; }
02513: c2,4d,50           stw   R50,[R4c++]      [R4c++] = R50;

Code: Select all

   Sub_8f8e6:
8f8e6: a1,40,0f,36        ldw   R36,f40          R36 = f40;
8f8ea: a1,d6,f8,34        ldw   R34,f8d6         R34 = f8d6;
here is where I see 8f8d6 referenced as a word value
jsa
Posts: 274
Joined: 2021 Feb 16, 15:46
Location: Australia
Vehicle Information: 95 Escort RS Cosworth
2.0 YBP
CARD / QUIK / COSY / ANTI
GHAJ0
SMD-190 / SMD-490 EEC-IV

Binary Editor
ForDiag

Re: EEC V file conversion

Unread post by jsa »

BOOSTEDEVERYTHING wrote: 2024 Mar 27, 20:44 the 8f951 to 8f956 looks to be fill to me. or an address pointing to zero
Have you read about the address modes, was there mention of word alignment?

In the context of word alignment what has the FF fill done?

SAD has picked up 8f952 and 8f954 as words.
Have you searched for code referencing 8F952?
Could 8F956 be part of the same word/structure?
Post Reply