Search found 700 matches

by jsa
Thu Dec 19, 2019 3:50 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

Ok, CARD has fault codes as args too, but word size. Neither are for lookups. Ok, you are right, a sym for a lookup could be applied to a non lookup sub arg. We have sym address ranges though. A name could be appled to a fault code though. The user's sym would be confined to an address range just as...
by jsa
Thu Dec 19, 2019 7:50 am
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

Sub40DF is all bytes, no words.
Resolves as per Sub40F8

Code: Select all

342c: ef,b0,0c            call  40df             Sub50(180d,e,19,1a0f,1b10,2821);
by jsa
Thu Dec 19, 2019 7:44 am
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

Sub4456 requires further investigation on my part at least. 2f0f: ef,44,15 call 4456 Sub69(53c,dc8c); . 2f19: ef,3a,15 call 4456 Sub69(dc8a,53c); . 2f2b: ef,28,15 call 4456 Sub69(11a,42,f1); . 2f54: ef,ff,14 call 4456 Sub69(f144,1a,1);
by jsa
Thu Dec 19, 2019 7:18 am
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

Sub40F8 is an example where 4.02 resolves a word argument when it is 2 byte size. Line 2E34 Those 2 bytes are used to; * B7 set 1 determine if hysteresis is applied or not * derive the RAM address of a counter 0x1B4 * derive the ROM addresses of two scalars 0xDD36 0xDD87 * derive the RAM address of ...
by jsa
Thu Dec 19, 2019 6:46 am
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

Yes. If you just enable N by default, then some absolute numbers will be interpreted as registers. e.g. if you have value of 2, it will display as symbol "LSO_PORT". Sorry I did not mean it in a global sense. Just name flags for arguments to Lookups. I have not seen a lookup taking an Immediate val...
by jsa
Thu Dec 19, 2019 12:43 am
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

Any reason why the specials can't have the N flag by default?
A missing name has not presented any issue previously, in my experience.

Yes, quite likely 2Y vs 1W errors remain.
Most likely anything related to
viewtopic.php?f=8&t=22520&start=300#p132678
by jsa
Wed Dec 18, 2019 7:30 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

TVRfan, Only these 3 entries in DIR SYM A7 "Warg2" #Y # Present value func D44A D457 :S Y V +1 :Y V +16 P +5 SYM D44A "F.Warg1" Output in LST STabLU1: 2680: ef,e5,50 call 7768 SUBFunLU1(F.Warg1,a7); Typical of many LU's, name for argument 2 is not output to LST. Do you get the same?
by jsa
Wed Dec 18, 2019 5:12 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

tvrfan wrote:
Wed Dec 18, 2019 1:21 pm
does that work ??
No

That line only in DIR, gives MSG

Code: Select all

# Read commands from directive file at E:\AllFiles\EEC-IV\Disassembly\SAD\SAD20191218\spare anti oem upr 56k_dir.txt
word 200a 200b "S.ROM_TO-Checksum"

               ^ Illegal Option
and LST

Code: Select all

2004: 02,00,ff,df,00,ff,e1,6c ??? 
by jsa
Wed Dec 18, 2019 3:26 am
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

It might be a line somewhere else that is messing up the processing ?? Yeah, getting varying results. The example above works for me now but other stuff is not. Most notably, SYM's associated with LU's are hit and miss. May take some time to nail down. SYM 200a "S.ROM_TO-Checksum" word 200a 200b # ...
by jsa
Wed Dec 18, 2019 12:14 am
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

so change the arbitrary serial numbers to addresses? Yes changed command parser to allow for no spaces between letters, so UY now works (in fact can do UYN for name check) Cool. Thanks for doing the testing !! No worries, all for the common good and a bit of self interest. Thanks for the ongoing im...
by jsa
Tue Dec 17, 2019 8:55 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

Seeing widespread naming gremlins Consider this in DIR rbase f4 c79e . . SYM 62 "Incorrect" #W # . . SYM C800 "Correct" 4.01 applies the name of the offset, when it should be the base+offset result. Should be R42=Correct Output in lst. 2097: a3,f4,62,42 ldw R42,[Rf4+62] R42 = Incorrect; The address...
by jsa
Tue Dec 17, 2019 8:46 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

(hopefully this will be 4.0.3 unless I get a serious bug !) Sub and Sym names are not being applied In DIR SYM 12 "Tmr" sub 2032 "Sub2032_InitAll_Rst" SUB 2149 "Sub2149_Startup" sub 5963 "Sub5963_I_HSO_2" $12, $2149 & $2032 in CMT, being ignored 2001 |# Jumps to Address 0x2149 $2149 2001 |# Clears ...
by jsa
Tue Dec 17, 2019 8:20 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

I also remember I have T: for biT in dir file..... I'll allow a B as well (and slowly drop the T). Anything else you spot, let me know. Yes indeed T: for the biT flag SYM's. <name><num> e.g. sub1, sub2, func1, func2, table1, table2 also if labels are switched on for jumps (not by default) it would ...
by jsa
Tue Dec 17, 2019 6:01 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD 4.0.2 Posted

Next planned step is to get a split solution, where subroutines can be "fixed args" and have a subroutine attached arg list (just as per 3.08 did), and the "per argument" for the variable arg subroutines. This means then I can put the command back (do need to work out a flag possibly to manually se...
by jsa
Tue Dec 17, 2019 5:24 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

Each of these alone will crash Sub 776d "Sub776D_SSByteLU" Sub 7770 "Sub7770_USByteLU" Sub 7773 "Sub7773_UUByteLU" Sub 77e0 "Sub77e0_SSWordLU" Sub 77e3 "Sub77e3_USwordLU" Sub 77e6 "Sub77e6_UUWordLU" Sub 78ad "Sub78ad_STabLU" Sub 78b0 "Sub78b0_UTabLU" These are OK. Sub 7768 "Sub7768_SubyteLU" Sub 77d...
by jsa
Tue Dec 17, 2019 4:59 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

Either of these entries alone in dir will crash today's SAD4.02

Code: Select all

Sub 7773 "Sub7773_UUByteLU"   : E 4 f0 N : W N #: F 1 32 Y U U
or

Code: Select all

Sub 7773 "Sub7773_UUByteLU"
by jsa
Tue Dec 17, 2019 4:18 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD 4.0.2 Posted

Posted 4.0.2 with following fixes 1. TEMP - sub command will ignore any extra parameters (symbol name should work) 2. TEMP - removed and ignore bank commands - not normally required anyway 3. Fixed problem with incorrect number of arguments (CARD and others) 4. Fixed problem with listing displaying...
by jsa
Mon Dec 16, 2019 4:51 am
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

Yes, you did say. I did say that many directives may not work !! This build was about the variable args. No worries. I see only the one bug as far as arg count goes. Where do you expect to be for Word VS Byte? I found that restoring A9L directives file causes the wierd address fault, but having no d...
by jsa
Mon Dec 16, 2019 2:19 am
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

3.08 dir entry

Code: Select all

Sub 7773 "Sub7773_UUByteLU"   : E 4 f0 N : W N #: F 1 32 Y U U
I have tried combinations of Sub, Sym and Arg to get the equivalent in 4.01.
The 4.01 list has no names assigned, persists with 1 word and 2 bytes, or misses the args all together.

Suggestions?
by jsa
Mon Dec 16, 2019 1:48 am
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

Seeing widespread naming gremlins Consider this in DIR rbase f4 c79e . . SYM 62 "Incorrect" #W # . . SYM C800 "Correct" 4.01 applies the name of the offset, when it should be the base+offset result. Should be R42=Correct Output in lst. 2097: a3,f4,62,42 ldw R42,[Rf4+62] R42 = Incorrect;
by jsa
Mon Dec 16, 2019 12:48 am
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

3.08 on left, 4.01 on right of image attached

This in DIR results in null in lst
Commenting out resolves.

Code: Select all

WORD  BF36 BF39
word bf36.png
3.08 on left, 4.01 on right
word bf36.png (18.06 KiB) Viewed 1302 times
by jsa
Mon Dec 16, 2019 12:30 am
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

3.08 on left, 4.01 on right of image attached

This in dir, wondering why the ???

Code: Select all

SYM 200a "S.ROM_TO-Checksum"
.
.
.
word 200a 200b
by jsa
Mon Dec 16, 2019 12:12 am
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

This does NOT crash

2000 in lieu of 0

Code: Select all

bank 8   2000   dfff
by jsa
Sun Dec 15, 2019 11:17 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

Another crash cause One or the other is ok, but both in the DIR will crash SAD. PEBKAC really, must of been trying something and failed to get rid of the incorrect cmd. 3.07 & 3.08 ignored me graciously though. STR 5442 54F1 :R N: Y O 3 : Y D 260 N: Y O 2 : W P 1: W | R N: Y O 3 : Y D 260 N: Y O 2 :...
by jsa
Sun Dec 15, 2019 10:17 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

As per Motorhead, bank statement in dir causes crash. From a cold start disassembly, I renamed the msg as dir, commented out a couple of lines at the top and run SAD. Instant crash until bank statement is deleted. Also getting a couple Illegal Options in the subsequent msg. opts :C F G N P S ^ Illeg...
by jsa
Sun Dec 15, 2019 5:14 am
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

Hey - does anyone still have 32 bit windows out there ? Do I need to change to Mingw64 instead of Mingw32 and go 64 bit windows?? Only Virtual XP these days for some old 16bit stuff. I suppose the day will come when 64bit is necessary, but care factor is pretty low for apps that don't need huge gob...
by jsa
Sat Dec 14, 2019 8:48 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

Tvrfan,

Owwkaay.

Are you still compiling with codeblocks? Version?

I will compile the source on codeblocks this evening, see if it differs.
by jsa
Sat Dec 14, 2019 7:36 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

Yeah , I did leave that in, to check SAD was getting right names - feeding this output back in will work now. I'm hoping you are impressed with not having to mess around with arguments any more ? Very very impressed. SAD 4.01 has done a [near] perfect job of resolving arg counts. to save having to ...
by jsa
Sat Dec 14, 2019 6:06 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

From the msg output of a 4.01 cold turkey run on CARD # ------------ Subroutine list (special funcs only) sub 8263c "UTabLU1" sub 82652 "UTabLU2" sub 82654 "UTabLU3" sub 82680 "STabLU1" sub 87768 "SUBFunLU1" sub 8776d "SSBFunLU1" sub 87770 "USBFunLU1" sub 87773 "UUBFunLU1" sub 877db "SUWFunLU1" sub ...
by jsa
Sat Dec 14, 2019 5:18 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 165
Views: 10837

Re: SAD disassembler progress

Thanks for all the work on the new version.

[WARNING]
I have a sub entry for _every_ single subroutine in my CARD dir. It will be very interesting to see how SAD 4.0.1 goes from a cold start.
[/WARNING]