Page 47 of 70
Re: EEC V file conversion
Posted: 2024 Aug 09, 14:36
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.
Re: EEC V file conversion
Posted: 2024 Aug 09, 16:39
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.
Re: EEC V file conversion
Posted: 2024 Aug 12, 09:23
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.
Re: EEC V file conversion
Posted: 2024 Aug 12, 17:38
by jsa
Which bin is that for?
Re: EEC V file conversion
Posted: 2024 Aug 13, 08:09
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.
Re: EEC V file conversion
Posted: 2024 Aug 14, 05:30
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.
Hopefully the args rewrite for the next SAD release is good.
I'll flick it over to TVRfan for pre-release testing.
Re: EEC V file conversion
Posted: 2024 Aug 14, 13:13
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.
Re: EEC V file conversion
Posted: 2024 Aug 16, 14:42
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.
Re: EEC V file conversion
Posted: 2024 Aug 17, 08:05
by jsa
Thanks, I'll try not to trip over any mistakes.
Re: EEC V file conversion
Posted: 2024 Aug 19, 07:59
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.