EEC V file conversion

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

Yes args can be hit and miss.

Probably be the weekend before I look at the timer stuff.
BOOSTEDEVERYTHING
Posts: 427
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 »

Updated DIR file attached for CRAI8.
Attachments
CRAI8_AOL1_DIR20240823.zip
(80.1 KiB) Downloaded 342 times
jsa
Posts: 437
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 Aug 19, 07:59 I am also not sure about the Timer Update Subroutine. You had it defined in the DIR file as Sub949F2, but I am thinking it may be Sub089F3. Please correct me if I am wrong. But Sub089F3 looks to compare better to Sub09FDD in RZASA, which is also defined as the timer update subroutine.
CRAI8 Sbg92EBD is the same code sequence as RZASA Sub949F2 except ATMR3_HI_RES is not in CRAI8 Sbg92EBD.

Code: Select all

92ef2: c3,ea,7e,00        stw   R0,[Rea+7e]      ATMR3_HI_RES = ZERO; } }
CRAI8 Sub089F3 looks nothing like RZASA Sub949F2 to me. It's not getting time from CLOCK either.

RZASA 09FDD looks like an operand to me, not a sub.

Code: Select all

09fdb: c7,d6,da,46        stb   R46,[Rd6+da]     DEMAND_STATE = TMP0L;

Update your DIR with this stuff;

Code: Select all

SYM    90 "FLAG_REG3"               #[UY]                               # {0}
SYM    90 "NACTMR_FLG"              :B5                                 # {0}
SYM    90 "ATMR2_FLAG"              :B6                                 # {0}

SYM    9A "FLAG_REG13"              #[UY]                               # {0}

SYM    D0 "APT"                     #[SY]                               # {0}
SYM    D0 "PT_THRTL"                :B0                                 # {0}
SYM    D0 "CL_THRTL"                :B7                                 # {0}

SYM   763 "ATMR1_LST"               #[UY]                               # {0}

SYM  116E "MORE_EXT_FLAGS"          #[UY]                               # {0}

SYM  120A "LOOP_TIME"               #[UW]                               # {0}
SYM  120C "LOOP_TIME_EXT"           #[UY]                               # {0}

SYM  1632 "ATMR1_HI_RES"            #[UW]                #Eighths       #Inverse, Word, Free Run Timer [3] Flag B7 0098 {0}

SYM  16F4 "NACTMR"                  #[UY]                #Seconds       #Byte, Free Run, Timer [0A] Flag B5 0090 {0}

jsa
Posts: 437
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 »

The range of these should be adjusted to suit the location of the lookup subs in CRAI8.
Alternatively remove the ranges altogether and have a single SYM each covering the whole bin.

Code: Select all

SYM    3C 92000 92D8D "TMP5L"       #                                   # {7}
#SYM    3C 92D8E 92DCA "Tb_Addr"     #                                   # {7}
#SYM    3C 92DCB 92DEC "Tb.CV|"      #                                   # {7}
SYM    3C 92DED 92E32 "TMP5L"       #                                   # {7}
#SYM    3C 92E33 92E78 "Tb_Addr"     #                                   # {7}
SYM    3C 92E79 9FFFF "TMP5L"       #                                   # {7}

SYM    3E 92000 92D8D "TMP6L"       #                                   # {7}
#SYM    3E 92D8E 92E32 "Tb.CV"       #                                   #Table Output, Control Value, Signed when Tblsflg set before {7}
SYM    3E 92E33 92EAC "TMP6L"       #                                   # {7}
#SYM    3E 92EAD 92EBC "Tb.CV"       #                                   #Table Output, Control Value, Signed when Tblsflg set before {7}
SYM    3E 92EBD 9FFFF "TMP6L"       #                                   # {7}
Update/add for your DIR;

Code: Select all

RBA  CE 19584                                                     # Loaded L8243B {0}

SYM    A6 "FLAG_REG26"              #[UY]                               # {0}
SYM    A6 "SCP_UP"                  :B5                                 # {0}

SYM    CE "CKINDEX"                 #[UW]                               #Rbase value 0x9584 Loaded L82433 {0}

SYM  1012 "RPPKT_ARRAY_ADR"         #[UW]                               # {0}
SYM  1014 "RPPKT_TMDB_IDX"          #[UY]                               # {0}

SYM 144DE "KNK_VERS"                #[UY=flo(X*1)]       #X             #Knock Control Version Selection (Knk Enable/Disable) {0}

SYM 12714 "XTALHPS_21"              #[UY=flo(X/2*3+15)]  #MHz           #PCM Clock Speed {0}
SYM 12715 "SPI_BIT_TRANSFER_RATE24" #[UY=flo(X*1)]       #              # {0}
SYM 12716 "SPI_BIT_TRANSFER_RATE24" #[UY=flo(X*1)]       #              # {0}
SYM 12717 "SPI_BIT_TRANSFER_RATE24" #[UY=flo(X*1)]       #              # {0}


SYM 140EC "uuwFn442__A"                                                 #CAT Temp EGT AM Modifier ACT {2}
FUN 140EC 14113 :UW :UW #[UW=flo(X/1024)] [UW=flo(X/64)]                #lbs/min>sec {2}

Add to or create CMT;

Code: Select all

############## Bank 8 Comments #########################################################

82408 # [19584]
8240C # [12715] 0x8
82410 # [12714] 0x4
82417 # 0x4 != 2
82419 # [195EA]
8241D # [12716] 0x8
82421 # 0x4 != 4
82426 # [19650]
8242A # [12417] 0x8
82431 # 0x4 != 6
82433 # [19584] 0x5B8D
82437 # [12715] 0x8
8243B # [RCE] 0x5B8D
8243E # [296] \s296
82445 # [144DE] 0x2
8244E # [144D0] \s144D0

8245C \n\n     # SJump from L82452 \s144DE = 2 \t83\s823CE
8245D # [144D0] \s144D0
jsa
Posts: 437
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 »

Delete all this from your DIR

Code: Select all

SCA 82005
SCA 82015
SCA 82017
SCA 82019
SCA 8201B
SCA 8201D
SCA 8201F
SCA 82021
SCA 82023
SCA 82025
SCA 82027
SCA 82029
SCA 8202B
SCA 8202D
SCA 8202F
SCA 82031
SCA 82033
SCA 82035
SCA 82037
SCA 82039
SCA 8203B
SCA 8203D
SCA 8203F
SCA 82041
SCA 82043
SCA 82045
SCA 82047
SCA 82049
SCA 8204B
SCA 8204D
SCA 8204F
SCA 82053
SCA 82055
SCA 82057
SCA 82059
SCA 8205B
SCA 8205D
SCA 8205F
SCA 82061
SCA 82065
SCA 82067
SCA 82069

SCA 8F6FB
SCA 8F6FE
SCA 8F702
SCA 8F705

SCA 8F775
SCA 8F778
SCA 8F77A
SCA 8F77B


SCA 9FF12
BOOSTEDEVERYTHING
Posts: 427
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 »

Is there a reason for deleting the sca commands from the DIR? I went through and added all of them just like I did in the last dir I was doing. And I did not add any for the areas where the tables and functions are stored. Did I do something wrong that I should also correct in my other DIR files?
jsa
Posts: 437
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 »

Scan command is meant to scan for subroutine code.

The addresses above are fill, pointers, scalars, structures and vectors.
BOOSTEDEVERYTHING
Posts: 427
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 »

Ah, Ok. Just making sure I understand why. Thanks. I went through this one like you instructed me to go through the other and kept adding the scan commands for all of the areas that were not disassembled by SAD. So, If I run into this again, If I find that an area that is not disassembled by SAD, ends up being one of the above, I should delete the added scan commands and just ignore the code that was not disassembled? Also, is there an easy way to determine what areas are structures and vectors? Still a bit confused by those.
BOOSTEDEVERYTHING
Posts: 427
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 »

Also. I found that SAD does not like a certain area of this code so I had to keep trying subsequent lines of code for it to start a scan, Is there a reason why or is it just a bug of some kind?

Code: Select all

SCA 855FF     # SAD V4.07.16B HAS PROBLEM WITH 855FC
The range of these should be adjusted to suit the location of the lookup subs in CRAI8.
I do plan to do this. That's why I commented those areas out. I just wanted to find and verify all of the lookup SUBS before attempting to define these.
CRAI8 Sub089F3 looks nothing like RZASA Sub949F2 to me. It's not getting time from CLOCK either.
Correct, It looks to compare to SUB_09FDD in RZASA. Which is also defined as Timer Update Sub in RZASA DIR file. Are there 2 Subs for the timer update? Sorry if this is a stupid question.
jsa
Posts: 437
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 Aug 26, 08:37 It looks to compare to SUB_09FDD in RZASA. Which is also defined as Timer Update Sub in RZASA DIR file.
No, these are the two timer subs I have in RZASA, which I have commanded. You have a typo for 09FDD.

Code: Select all

SUB 92EBD "Sbg92EBD_Tmr_Upd" # {0}
SUB 92FDD "Sbg92FDD_Tmr_Upd" # {0}
Post Reply