Page 4 of 15
Re: SAD Version 5 (alpha)
Posted: 2024 Jan 05, 15:30
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.
Re: SAD Version 5 (alpha)
Posted: 2024 Jan 05, 15:59
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?
Re: SAD Version 5 (alpha)
Posted: 2024 Jan 05, 16:19
by wwhite
Both, yes.
Get same back trace and seg fault same location with precompiled binary.
Re: SAD Version 5 (alpha)
Posted: 2024 Jan 05, 22:29
by jsa
I concur, KID2 will crash SAD 5.03, no DIR or CMT required.
I downloaded KID2 from;
viewtopic.php?p=13025#p13025
Re: SAD Version 5 (alpha)
Posted: 2024 Jan 06, 01:51
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.
Re: SAD Version 5 (alpha)
Posted: 2024 Jan 06, 01:57
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 );
Re: SAD Version 5 (alpha)
Posted: 2024 Jan 06, 13:41
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....
Re: SAD Version 5 (alpha)
Posted: 2024 Jan 06, 23:38
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.
Re: SAD Version 5 (alpha)
Posted: 2024 Jan 07, 00:10
by jsa
Post up the DIR entry for your MAF function.
Re: SAD Version 5 (alpha)
Posted: 2024 Jan 07, 09:30
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