EEC V file conversion

All hardware related, disassembly / programming and code discussions belong here.
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 »

Thank You.
I have a quick question, in EQE3 I have this..

Code: Select all

0b57f: 99,03,27           cmpb  R27,3            
0b582: d7,26              jne   0b5aa            if (R126 = 0)  {
0b584: 8b,ee,e4,00        cmpw  R0,[Ree+e4]      
0b588: d7,08              jne   0b592            if (DS_DLY_TMR = ZERO)  {
0b58a: b1,04,27           ldb   R27,4            TEMP1H = 4;
0b58d: 91,05,28           orb   R28,5            B0_TEMP2L = 1;
                                                 VEGO_RHAVG_N_2 = 1;
0b590: 20,12              sjmp  0b5a4            goto 0b5a4; }

0b592: 32,28,05           jnb   B2,R28,0b59a     if (VEGO_RHAVG_N_2 = 1)  {
0b595: b1,04,27           ldb   R27,4            TEMP1H = 4;
0b598: 20,06              sjmp  0b5a0            goto 0b5a0; }

0b59a: 33,26,0d           jnb   B3,R26,0b5aa     if (STOP_DS_EX = 1)  {
0b59d: b1,00,27           ldb   R27,0            TEMP1H = 0;
0b5a0: c3,ee,e4,00        stw   R0,[Ree+e4]      DS_DLY_TMR = ZERO;
0b5a4: 71,bf,26           an2b  R26,bf           LCL_DS_EGO_OL = 0;
0b5a7: 71,bf,28           an2b  R28,bf           B6_TEMP2L = 0; } }
0b5aa: 99,02,27           cmpb  R27,2            
0b5ad: d7,3c              jne   0b5eb            if (TEMP1H = 2)  {
In RZASA I have this...

Code: Select all

0b05e: 99,03,27           cmpb  R27,3            
0b061: d7,26              jne   0b089            if (TEMP1H = 3)  {
0b063: 8b,ea,e4,00        cmpw  R0,[Rea+e4]      
0b067: d7,08              jne   0b071            if (DS_DLY_TMR = ZERO)  {
0b069: b1,04,27           ldb   R27,4            TEMP1H = 4;
0b06c: 91,05,28           orb   R28,5            B0_TEMP2L = 1;
                                                 VEGO_RHAVG_N = 1;
0b06f: 20,12              sjmp  0b083            goto 0b083; }

0b071: 32,28,05           jnb   B2,R28,0b079     if (VEGO_RHAVG_N = 1)  {
0b074: b1,04,27           ldb   R27,4            TEMP1H = 4;
0b077: 20,06              sjmp  0b07f            goto 0b07f; }

0b079: 33,26,0d           jnb   B3,R26,0b089     if (STOP_DS_EX = 1)  {
0b07c: b1,00,27           ldb   R27,0            TEMP1H = 0;
0b07f: c3,ea,e4,00        stw   R0,[Rea+e4]      DS_DLY_TMR = ZERO;
0b083: 71,bf,26           an2b  R26,bf           LCL_DS_EGO_OL = 0;
0b086: 71,bf,28           an2b  R28,bf           B6_TEMP2L = 0; } }
0b089: 99,02,27           cmpb  R27,2            
0b08c: d7,3c              jne   0b0ca            if (TEMP1H = 2)  {
So Should the if (R126 = 0) be if (TEMP1H = 3)? If not, could you explain why please? Thank you. Trying to actually learn this stuff as I see things. I do not want to be a bother, but I can not figure out if it a mistake from SAD or if I am missing something.
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 »

Just in case you are following with the comparison charts here is an updated version.
Attachments
Dissasembly Comparison.ods
(39.1 KiB) Downloaded 57 times
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 »

Looks like it should be R27 not R126.
TMP1H depends on what you have in DIR.

Which SAD version?
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 »

Version 4.012. I have TMP1H in the dir file. It just skips right there. SAD V5.0.2 crashes when I use the dir file with it so I have been continuing on with 4.012.
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 »

A bug in 4.012 then.

Yeah, 502 is an alpha build, but some DIR changes may be needed for future builds.
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 »

I am having some trouble with this section of my dir file....

Code: Select all

SYM  003C "WIP"                       :B0 
SYM  003C "WEL"                       :B1 
SYM  003C "BL0"                       :B2 
SYM  003C "BL1"                       :B3 
SYM  003C "TMP5L"		      #UY #??
SYM  003C 02000 0FFFF "TMP5L"	
SYM  003C 033DC 03417 "Tb_Addr" 
SYM  003c 08743       "BGTMR"     
SYM  003C 12000 833DA "TMP5L"
SYM  003C 82345 86789 "WIP"           :B0 
SYM  003C 833DC 83417 "Tb_Addr"
SYM  003C 83419 8343A "Tb.CV|"
SYM  003C 8343B 9FFFF "TMP5L"
SYM  003C 92345 96789 "WEL"           :B0 
Could you please show me how to correct this and clean it up a bit? I start getting cross eyed when I look at this part! LOL
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

SYM  003C 033DC 03417 "Tb_Addr" 

SYM  003C 833DC 83417 "Tb_Addr"
SYM  003C 83419 8343A "Tb.CV|"

SYM  003C "WIP"                       :B0 
SYM  003C "WEL"                       :B1 
SYM  003C "BL0"                       :B2 
SYM  003C "BL1"                       :B3 
SYM  003C "TMP5L"		      #UY #??
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 »

THANK YOU SO MUCH!!!! You make it look easy. LOL. I kept going back and forth trying to clean it up. I am also not getting entries in a bunch of locations for R3C like I had it so hopefully this will help with that as well. The one thing I do not see is the BGTMR entry. It looks like it shows up only on the line I noted in the DIR file. Did I do that part correctly or do I need an end address as well?

Shoot. I am still getting dead spots in the lst file. Do I need to define the areas between the addresses as well, or should SAD pick them up because I have not defined them specifically? Here is an example..

Code: Select all

0414c: a3,ff,68,09,3c     ldw   R3c,[Rfe+968]    R3c = [16be2];
04151: 65,1e,00,3c        ad2w  R3c,1e           R3c += 1e;
04155: b3,ff,66,09,36     ldb   R36,[Rfe+966]    TMP2L = [16be0];
0415a: a1,b6,03,3e        ldw   R3e,3b6          TMP6L = 3b6;
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 »

Bgtmr, add the end address.

Your bank 0 and 8 for Tb_Addr smells fishy.

Which SAD version/s?
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 »

V 4.012
I will double check the Tb_Addr entries again. I may have picked that out wrong for sure. That was much earlier on in the process. I think I have picked up quite a bit since then.
As far as Bgtmr goes, if I only see it in one place do I use the same beginning and end address? I will try and post an example of where i see it and the comparison I found in RZASA that I am going off of.

Here we go.. In RZASA

Code: Select all

93015: e0,46,2f           djnz  R46,93047        TMP0L--;
                                                 if (TMP0L != 0) goto 93047;
93018: 56,35,00,40        ad3b  R40,R0,[R34++]   TMP7L = [TMP1L];
9301c: df,77              je    93095            if (TMP7L = 0) goto 93095;
9301e: 56,35,00,46        ad3b  R46,R0,[R34++]   TMP0L = [TMP1L];
93022: df,f4              je    93018            if (TMP0L = 0) goto 93018;
93024: 31,40,06           jnb   B1,R40,9302d     if (WORD_TMR = 1)  {
93027: 07,36              incw  R36              TMP2L++;
93029: 61,fe,ff,36        an2w  R36,fffe         B0_TMP2L = 0; }
9302d: 35,40,08           jnb   B5,R40,93038     if (MILLISECS = 1)  {
93030: 47,01,5a,07,00,2c  ad3w  R2c,R0,[R0+75a]  TEMP4L = BG_TMR;
93036: 20,0d              sjmp  93045            goto 93045; }

93038: 36,40,06           jnb   B6,R40,93041     if (EIGHTHS = 1)  {
9303b: 44,28,00,2c        ad3w  R2c,R0,R28       TEMP4L = TEMP2L;
9303f: 20,04              sjmp  93045            goto 93045; }
In EQE3

Code: Select all

08728: e0,46,2d           djnz  R46,08758        TMP0L--;
                                                 if (TMP0L != 0) goto 08758;
0872b: 56,35,00,40        ad3b  R40,R0,[R34++]   TMP7L = [TMP1L];
0872f: df,75              je    087a6            if (TMP7L = 0) goto 087a6;
08731: 56,35,00,46        ad3b  R46,R0,[R34++]   TMP0L = [TMP1L];
08735: df,f4              je    0872b            if (TMP0L = 0) goto 0872b;
08737: 31,40,06           jnb   B1,R40,08740     if (WORD_TMR = 1)  {
0873a: 07,36              incw  R36              TMP2L++;
0873c: 61,fe,ff,36        an2w  R36,fffe         B0_TMP2L = 0; }
08740: 35,40,06           jnb   B5,R40,08749     if (MILLISECS = 1)  {
08743: 44,3c,00,2c        ad3w  R2c,R0,R3c       TEMP4L = R3c;
08747: 20,0d              sjmp  08756            goto 08756; }

08749: 36,40,06           jnb   B6,R40,08752     if (EIGHTHS = 1)  {
0874c: 44,28,00,2c        ad3w  R2c,R0,R28       TEMP4L = TEMP2L;
08750: 20,04              sjmp  08756            goto 08756; }
Of course now that I am looking at it again, maybe I am defining it incorrectly?
Post Reply