EEC V file conversion

All hardware related, disassembly / programming and code discussions belong here.
wwhite
Posts: 333
Joined: 2021 Feb 16, 15:53
Location: Victoria, BC, Canada
Vehicle Information: 1994 Flarside, XLT, 351w E4OD
SD48b, Quarter Horse, Burn2

Re: EEC V file conversion

Unread post by wwhite »

I find when this happens, you need to define smaller code blocks in the dir. and more than likely, the number of arguments passed in a function are not defined properly.
You have to get all invalid gone, otherwise the following code can be misinterpreted and wrong.
jsa
Posts: 361
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 »

As wwhite has said the code command can cause the issue if non code is commanded to be code.

Scan is a safer command.

It can also happen because SAD has lost the plot with args.

The error occurs because SAD's sanity check has detected errors like jumping to an operand.

Note the damn bank bug in those MSG addresses, subtract 1 to get the real bank address.
BOOSTEDEVERYTHING
Posts: 345
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 not used the code command anywhere. Even when I comment out my sca commands the errors are present. So, it has to be a function I added, maybe? I added about 2 -3 pages of handwritten notes the last time I updated the DIR so it is taking me a while to figure out my mistake. I will comment out my Func commands a few at a time and see what I come up with. Thanks.


Edit: Just a thought.......Could a SUB command cause this error as well????

Edit: Answered my own question. Does not like a subroutine command I entered in the DIR file.

Code: Select all

SUB 077D4 "Sxx077D4_RZA9B543"                                            # SAME AS RZASA Sub_9B543     # {7}
Not sure what it breaks exactly. But this one is the one SAD does not like. When I comment it out the errors go away.
jsa
Posts: 361
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 »

Which bin is that for?
BOOSTEDEVERYTHING
Posts: 345
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 »

CRAI8_AOL1.bin. I have been using the file you sent me for disassembly. Sorry, should have specified that. I have a few bins I am working on. LOL. Figured I would get a good start on the CRAI8 file so that I would have a good comparison to the documents I have been using mostly.
Oddly enough, the message file has it labeled as a Subroutine (with a SYM command), but when I use a SUB command I get all those errors. I changed it to a SYM command for the time being for labeling purposes.
jsa
Posts: 361
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 »

It's a bug in 4.07.16B & 4.012, in some way related to arguments.

5.08 does not have the issue but it does not disassemble great swathes of code by default, so the invalid opcode addresses fall into those areas. The issue could be there lurking.

This single entry alone in DIR will cause the issue.

Code: Select all

SUB 077D4 "Sub077D4_Caller"                                               # {0}
Hopefully the args rewrite for the next SAD release is good.

I'll flick it over to TVRfan for pre-release testing.
BOOSTEDEVERYTHING
Posts: 345
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 »

Thanks. Hopefully the next release will be soon. I am trying to stay away from v5 right now but I do use it for the msg file results at times. It helps a good bit to check for duplicates.
BOOSTEDEVERYTHING
Posts: 345
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 »

Figured I would post up an updated DIR file for CRAI8. Added some things, but haven't compared anything to the Strategy Docs in the DIR file yet.
Attachments
CRAI8_AOL1_DIR_20240816.zip
May contain PLENTY of Mistakes!!!
(72.78 KiB) Downloaded 91 times
jsa
Posts: 361
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 »

Thanks, I'll try not to trip over any mistakes.
BOOSTEDEVERYTHING
Posts: 345
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 »

Please do!! LOL. Let me know what you find so I can correct my DIR file please. Also have seen mistakes in the ARGS and have not yet attempted to define those yet. 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.
Post Reply