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 »

BOOSTEDEVERYTHING wrote: 2023 Dec 29, 14:29 V 4.012
It has naming bugs.

As far as Bgtmr goes, if I only see it in one place do I use the same beginning and end address?

EQE3
DIR

Code: Select all

SYM  1070 "BG_TMR"                        #UW # Background loop time
LST

Code: Select all

086d7: c3,e2,f0,3c        stw   R3c,[Re2+f0]     BG_TMR = TMP5L;                   # [1070]
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.

In EQE3

Code: Select all

08743: 44,3c,00,2c        ad3w  R2c,R0,R3c       TEMP4L = R3c;
Of course now that I am looking at it again, maybe I am defining it incorrectly?
DIR

Code: Select all

SYM R3C 08743 08746 ".bg_tmr."
I try to make it obvious when I'm naming temp register over a range, that are copies of the real thing.
Never tried making the start and end address the same for a sym range. Try it and report back.
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 »

At the moment SAD decodes one type of timer update structure.
At the moment, effort is going into doing that for all timer update structures.
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 »

Here's some stuff you can edit into your EQE3 files.

CMT

Code: Select all

086C8 # [120E]
086CD # [1210]
086D4 # [1780E] 0x7A12
086D7 # [1070]
086E9 # [120E]
086ED # [1210]
086F1 # [1212]
086FB # [1212]
08701 # [1213]
0870E # [1213]
08714 # [172A]
08719 # [1729]
-------------------------
82406 # [1258F] 0x8
8240A # [1258E] 0x6
8240E # 0x6 != 0x2
82417 # [12590] 0x8
8241B # 0x6 != 0x4
82424 # [12591] 0x8
82428 # 0x6 = 0x6
82431 # [1258F] 0x8

82434 \n\n     # Cont              [1258E] != 0x2, 0x4, 0x6 \t83\s823C8
82434   \n     # JE    from L82411 [1258E] != 0x2, No Jump \t83\s823C8
82434   \n     # JE    from L8241E [1258E] != 0x4, No Jump \t83\s823C8
82434   \n     # JE    from L8242B [1258E] = 0x6, \s46 = 0x780E \s36 = 0x8 \t83\s823C8
82435 # RBA D0 1780E

82438 # [276] = 0x8

8243F # 0x0 != 0x0
82443 # [13EF8]
DIR

Code: Select all

RBA D0 1780E

SYM    D0 "CKINDEX"                       #UW # Rbase D0 1780E, L82435

SYM 1258E "AICE_?x6"

SYM 17544 "Tmr_Cmd_Str"                    #   # Timer Command Structure

SYM 1780E "CKINDEX_Str"
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 »

Awesome. Thank you very much. I will edit/add those entries and keep plugging away.

Edit: While editing the dir file I remembered a question that I had and maybe you already answered it with your entries to add. Can and address be both an Rbase and a Labeled item with labeled Bytes? Also, you previously defined SYM 1258E "AICE_?x8", should i replace it with the AICE_?x6 instead? also you had SYM 17554 #UY # Timer Command Structure, Do I replace that as well? Looks like there can only be one timer command structure, 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 Jan 02, 07:21 Edit: While editing the dir file I remembered a question that I had and maybe you already answered it with your entries to add.
Looks like it.
Can and address be both an Rbase and a Labeled item with labeled Bytes?
Yes
Also, you previously defined SYM 1258E "AICE_?x8", should i replace it with the AICE_?x6 instead?
Yes
also you had SYM 17554 #UY # Timer Command Structure, Do I replace that as well?
Yes
Looks like there can only be one timer command structure, correct?
Seems so.

DIR and CMT updated for the Timer Structure.
RZASA Timers.zip
(193.14 KiB) Downloaded 69 times
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 have a question about this....

Code: Select all

#                 D
#                 e   F
#       S E   B I c   r
#       e i   i n r   e
#       c g   d v e   e
#       o h m i e m W
#       n t S r r e o R
#       d h e e s n r u
#       s s c c e t d n
What does it mean? Sorry if it is a stupid question.
Can and address be both an Rbase and a Labeled item with labeled Bytes?
Yes
I have been second and third guessing myself on a few sym entries because I thought an address could only be one thing. So this is good to know. Thank You! Guess I should have asked that a long time ago instead of assuming.
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 »

Look at R40 in the DIR or the description in CMT or LST for the subroutine.
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 have a quick question, hopefully...

Code: Select all

   Sub_0230e:
0230e: a1,00,0c,48        ldw   R48,c00          FGTMP0L = DRC_DTI0_CON;
02312: 3b,c1,08           jb    B3,Rc1,0231d     if (DARC_INIT_FLG = 0) {
02315: b3,49,8a,00,4a     ldb   R4a,[R48+8a]     FGTMP1L = [FGTMP0L+8a]
How would I find the address for FGTMP0L + 8a ? FGTMPOL is DRC_DT10_CON, which is c00, so, what is the + 8a. If I add them it should be c8a, is that correct? So the FGTMP0L + 8a = c8a, so I would be looking at FGTMP1l = Rc8a....Is that correct?

Sorry if that is not worded really great. I want to make sure I am doing that correctly. Thank You.
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 »

C8A but not a register.

You could command an Rbase over the local range and then C8A symbol name could be printed.
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 »

Looking at my dir file, do you think I may have enough to create a partial def file to be able to read the file from my pcm with tunerpro rt?
Post Reply