SAD Version 5 (alpha)

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: SAD Version 5 (alpha)

Unread post by BOOSTEDEVERYTHING »

Sorry. I did find a bug, I believe. It does not seem to define(?) the ORB ops at all, here is an example...most of them are blank and I have a few that are just wrong compared to previous versions of SAD.

Code: Select all

02734: 91,02,8b           orb   R8b,2             } }
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: SAD Version 5 (alpha)

Unread post by jsa »

For those using 5.03, be aware that some small logic errors remain in LST. These have been reported.

Wwhite, are you running the source from within VC to disassemble KID2 or using the prebuilt exe binary to crash SAD with KID2?
wwhite
Posts: 320
Joined: 2021 Feb 16, 15:53
Location: Victoria, BC, Canada
Vehicle Information: 1994 Flarside, XLT, 351w E4OD
SD48b, Quarter Horse, Burn2

Re: SAD Version 5 (alpha)

Unread post by wwhite »

Both, yes.

Get same back trace and seg fault same location with precompiled binary.
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: SAD Version 5 (alpha)

Unread post by jsa »

I concur, KID2 will crash SAD 5.03, no DIR or CMT required.

I downloaded KID2 from;
viewtopic.php?p=13025#p13025
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: SAD Version 5 (alpha)

Unread post by jsa »

BOOSTEDEVERYTHING wrote: 2024 Jan 05, 15:17 I am sorry, I spoke too soon as well, with a dir file I got a partial lst file and an empty msg file. No debug file this time. My lst file seems to end with a few func listings and then just stops. Is there a way to tell what made the program crash?
Seeing similar with other bins, without using DIR or CMT.

I'm not seeing the issue with the DIR and CMT I have for EQE3.
EDIT: Never mind. I went into my DIR file and commented out the functions list i had and the program completed the run.

Yeah, that's the way to narrow down the cause.

These are my errors and will report back if it was my doing or maybe a bug. Thanks again!!!

Code: Select all

## SYM  0015 "AICE_A_D_CTRL"          [W ][B4 ]
   ## Error - too many [data] items specified
Try [W B4], seems like a conversion error from V4 or new version internal error.
Jamie from oz
Posts: 28
Joined: 2022 Jul 08, 04:54
Location: South Australia
Vehicle Information: 1995 ford falcon ute 5.0 windsor efi

Re: SAD Version 5 (alpha)

Unread post by Jamie from oz »

I had to comment out a couple of func to get SAD 5.0.3 to run fully also on 6dbd_56k_x
and some ORB ops dont fully translate .

Code: Select all

#fun ce22 ce3d "func_ce22_": UW X 10 V 4 : UW X 10        # in=410_n
#fun ce3e ce59 "func_ce3e_": UW X 10 V 4 : UW X 10        # in=410_N  

Code: Select all

   Sub_a7fc_:
a7fc: 91,40,77            orb   R77,40           
a7ff: 20,03               sjmp  a804             goto a804;

   Sub_a801_:
a801: 71,bf,77            an2b  R77,bf           
a804: ef,8e,f9            call  a195             Sub_a195_get_Bytes (
a807: 02                        #arg 1              2 );
a808: ef,74,fb            call  a37f             SubA37F_Arg_Addr_Decode (
a80b: 2a,00                     #arg 1              R2Ascr );
with sad 4.12a

Code: Select all

   Sub_a7fc_:
a7fc: 91,40,77            orb   R77,40           B6_Flg77 = 1;
a7ff: 20,03               sjmp  a804             goto a804;

   Sub_a801_:
a801: 71,bf,77            an2b  R77,bf           B6_Flg77 = 0;
a804: ef,8e,f9            call  a195             Sub_a195_get_Bytes (
a807: 02                        #arg 1              2 );
a808: ef,74,fb            call  a37f             SubA37F_Arg_Addr_Decode (
a80b: 2a,00                     #arg 1              R2Ascr );
tvrfan
Posts: 88
Joined: 2023 Oct 22, 22:13
Location: New Zealand
Vehicle Information: Several Kit cars, Ford (Europe), EEC-IV, TVR Vixen, Tasmin (a.k.a Wedge),
Engine - Cologne 2.8 V6 (Europe) catch code 'AA'.

EEC_Disassembler https://github.com/tvrfan/EEC-IV-disassembler

Re: SAD Version 5 (alpha)

Unread post by tvrfan »

Thanks guys,

All bugs welcome. Don't apologize for finding them !

I have found a bug which can cause a crash, and several bit flag listings are wrong. Other stuff ongoing too.

Will get rid of the stars in the file in github (didn't realise it screws up git operations....)

Note that the command

SYM 0015 "AICE_A_D_CTRL" [W ][B4 ]

IS WRONG AND ALWAYS HAS BEEN - It's just that v4 didn't check properly and v5 does, so it sneaked through and I didn't spot it.

It should be

SYM 0015 "AICE_A_D_CTRL" [W B4 ] # ONE extra definition -> bit flag 4 is a WRITE symbol
or
SYM 0015 "AICE_A_D_CTRL" : W B4 # fixed in original format , drop the second colon

Considering I rewrote a LOT of SAD code, it's doin' OK, but not great.....I thought I had tested stuff better, but obviously not....
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: SAD Version 5 (alpha)

Unread post by BOOSTEDEVERYTHING »

Most of the errors I have are my fault. I do like how it checks the dir file and keeps the user in check, so to speak. I found several duplicate entries that I did not notice before. The func it doesn’t like is my MAF transfer function. I have that function edited out and it goes through fine. As soon as I put it back in, it crashes the program. I will look through the sad documents and see if I can find the part it doesn’t like 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: SAD Version 5 (alpha)

Unread post by jsa »

Post up the DIR entry for your MAF function.
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: SAD Version 5 (alpha)

Unread post by BOOSTEDEVERYTHING »

Code: Select all

FUN 12254 122CB "uuwFn036_MAF_Transfer" :W V 13107 :W V +1 P +5      # Mass Air Flow meter transfer function. CDAN 24-6
Post Reply