Search found 470 matches

by tvrfan
Tue Dec 17, 2019 6:23 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

Re: SAD disassembler progress

Jsa, did you ask about a data offset back there ?? This can be done anywhere in an argument list or data structure definition with a D <offset> command, where offset is a hex value. I will check that it works for multibanks. ... when I put the args command back............... next step is to split t...
by tvrfan
Tue Dec 17, 2019 6:11 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

Re: SAD disassembler progress

Thanks ! I didn't even spot the SBFunc.. SWFunc.. You are right. I'll change it to SY Will change the table lookup too. (SYTabLu, UYTabLu) to make it consistent. 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. <n...
by tvrfan
Tue Dec 17, 2019 5:28 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

Re: SAD disassembler progress

jsa wrote:
Tue Dec 17, 2019 4:59 pm
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"
Oh Bugger...............that's a STUPID code mistake from me...will fix now.


- - - - DONE - - - -
by tvrfan
Tue Dec 17, 2019 5:23 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

Re: SAD 4.0.2 Posted

jsa, Firstly - OOPS !! You took a wrong understanding of my intent for the sizes, but it's my fault. More.... You just know I want to override it with my own naming convention, that includes the address. Yeah, sorry. I was totally focussed on getting var args to work. The variable argument changes ....
by tvrfan
Tue Dec 17, 2019 1:34 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

Re: SAD 4.0.2 updated

Updated 4.0.2 to fix problem with sym names in multibanks (-> ironman) Also taken opportunity whilst fixing to add bank number in indirect [xxxx] or indexed [Rn + xxxx] psuedo code where code is sure that the address is an absolute one. (i.e. greater than 0x2000 and less than 0xffff). Those indexed ...
by tvrfan
Mon Dec 16, 2019 8:08 pm
Forum: Software Issues & Support
Topic: Borland database engine
Replies: 2
Views: 419

Re: Borland database engine

I remember it was bundled with the various C++ builder suites as well I think.
by tvrfan
Mon Dec 16, 2019 2:34 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

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 tvrfan
Mon Dec 16, 2019 4:11 am
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

Re: SAD disassembler progress

I did say that many directives may not work !! This build was about the variable args. I found that restoring A9L directives file causes the wierd address fault, but having no dirs at all and they work just fine. OK - I'm going to finish the arg problem first, then temp drop the bank line altogether...
by tvrfan
Mon Dec 16, 2019 1:16 am
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

Re: SAD disassembler progress

This does NOT crash 2000 in lieu of 0 bank 8 2000 dfff Glad that's been resolved. When I tried this in the past it would complain about something nonsensical. I figured since I only work on single banks currently, I'd just remove the bank call :grin: Yeah, for a single bank, it's overkill !! Perhap...
by tvrfan
Mon Dec 16, 2019 1:15 am
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

Re: SAD disassembler progress

Thanks heaps to you all for these, and the workarounds - useful clues for me. I think I found the incorrect argument cause in CARD. I can't get the linux version to crash with feeding CARD msg file back as a dir (yet). Will try in my Win Build. No too surprised on this as I had to mess around quite ...
by tvrfan
Sun Dec 15, 2019 10:29 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

Re: SAD disassembler progress 4.0.1

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 ^ Ille...
by tvrfan
Sun Dec 15, 2019 10:28 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

Re: SAD disassembler progress 4.0.1

Does SAD work when just the bank command commented out ? (do this with a '#' at the front) GIT. Yeah, got my local and remote git repository to sync so that I can pull and push, and the push even deleted old versions to match the local repository. Nice. I spent a while reading the howtos and had a f...
by tvrfan
Sun Dec 15, 2019 12:16 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

Re: SAD disassembler progress

Thanks John. I didn't do any real testing on Windows as my PC is all Linux (64 bit). I didn't expect anything, but now I'll look out for 64/32 issues. Debug - Damn, I forgot to switch off the debug macro. Will do that now. I have downloaded MinGW64 but it seems to require a full build, so that may t...
by tvrfan
Sat Dec 14, 2019 10:38 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

Re: SAD disassembler progress

OK have pushed update of SAD401 for WIn32 with a 'double' in place of the 'long'. This seems to fix the problem for now.... That was a platform problem................Yes, 8061 is a 16 bit CPU, but its multiply and divide are 32 bit. I used a 64 bit 'long' to capture any overflow in a neat way, but ...
by tvrfan
Sat Dec 14, 2019 9:53 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

Re: SAD disassembler progress

John, May have the answer. I have a 'long' parameter in 'set_psw' subroutine (to allow for overflows and divides etc) In Linux, long is 64 bits, int is 32 bits In win32, long is 32 bits , int is 32 bits. and in emulate, the psw determines when djnz and other conditional jumps actually jump or not......
by tvrfan
Sat Dec 14, 2019 8:10 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

Re: SAD disassembler progress

John, Hey, that's really weird - If I run CARD on linux with no DIR file it gives - 3a57: df,11 je 3a6a if ([R76-67] = 0) goto 3a6a; 3a59: ef,fa,09 call 4456 Sub69(f154,da,1); 3a5c: 54,f1,da,01 #args 3a60: 31,2c,1f jnb B1,R2c,3a82 if (B1_R2c = 0) goto 3a82; 3a63: ef,92,06 call 40f8 Sub51(43c); 3a66:...
by tvrfan
Sat Dec 14, 2019 6:14 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

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 tvrfan
Sat Dec 14, 2019 6:12 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

Re: SAD disassembler progress

OK - I give in. You are right. A sub command will now IGNORE any additional commands, but will still process the name... Just pushed this out as a quick fix to Github, still as 4.01 e.g. SUB 3456 "Filter" : S Y: S Y:W will get processed as SUB 3456 "Filter" which is exactly the same as SYM 3456 "Fil...
by tvrfan
Sat Dec 14, 2019 5:49 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

Re: SAD disassembler progress

POSTED version 4.0.1 to github. I did try out the full A9L directives file, but WITHOUT any SUB commands, as they won't work any more (did args and lookups in totally different way). The struct commands still work..........but no guarantees. Try version 4 out with NO .DIR file first, and see how it...
by tvrfan
Sat Dec 14, 2019 5:44 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

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] OK - change the SUB to a SYM to get your names back. Just please drop off any additional stuff (...
by tvrfan
Sat Dec 14, 2019 3:26 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

Re: SAD disassembler progress

POSTED version 4.0.1 to github. I did try out the full A9L directives file, but WITHOUT any SUB commands, as they won't work any more (did args and lookups in totally different way). The struct commands still work..........but no guarantees. Try version 4 out with NO .DIR file first, and see how it ...
by tvrfan
Tue Dec 10, 2019 3:36 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

Re: SAD disassembler progress

So reverse scan is different to stepping back through the code? Yeah in my head anyway. I originally kept a 'pile' of previous opcodes for conditional jumps, and stepped back through them, but now I've changed the code so that it can simply feed in ANY (valid) opcode start address and get it decode...
by tvrfan
Tue Dec 10, 2019 3:18 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

Re: SAD disassembler progress

OK, sorry about further delay, I ran into a tricky bug... Anyway, I've now got SAD v4 to work correctly for variable arguments, and it also is able to size and decode those arguments. (decode is where the argument has a value like 0xd040 which equates to address [0xfa] + 40 ). I've found FOUR versio...
by tvrfan
Wed Oct 30, 2019 10:53 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

Re: SAD disassembler progress

Ah Yes, a good reminder.

I couldn't get that to work either !!

In the end I added a special extra emulate pass/block, flagged/created from the push, which executes before the 'final' return (this is where the args are)
so that gets more args if required.

and it seems to work !!
by tvrfan
Wed Oct 30, 2019 4:54 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

Re: SAD disassembler progress

More - Problem with loops was for tabs and funcs (2D and 1D lookups). SAD did originally rescan those blocks to get the parameters (address and size) out (from the call tree), but that caused loops when trying to link it with emulate (complicated by the fact that the function lookup code has JUMPS i...
by tvrfan
Wed Oct 30, 2019 1:45 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

Re: SAD disassembler progress

the code now has 2 distinct 'phases'. It scans the binary as a 'tree' (i.e. jumps and calls create a new 'branch' as a block to be scanned), but keeps a fake stack of 'callers' up to date. and if it finds a POP or LDX [STACK+n] command, it flags that scan branch as an argument getter, and then flags...
by tvrfan
Tue Oct 29, 2019 1:48 pm
Forum: EECGeeks
Topic: SAD disassembler progress
Replies: 146
Views: 7011

New SAD version soon

Update after being far too long getting next version ready, here's my announcement Where I am up to - I have FINALLY got a method which seems to work for all my 'test binaries' collection, including variable argument decodes. The variable arg analysis proved HUGELY harder than I expected, and I agai...
by tvrfan
Sat Oct 19, 2019 4:02 am
Forum: Hardware Discussions
Topic: I/O count of modern EECs
Replies: 6
Views: 796

Re: I/O count of modern EECs

Ah right - sorry. My 'standard' stuff' was the HEGOs and emission stuff, base sensors, basically what's on all engines. I don't know if VVT sensor replaces the 'standard' cam sensor or not, I think probably not as it's a 'cyl 1' marker Yes ?? I really DO mean Lotus. The Evora uses the 2GR-FE engine ...
by tvrfan
Fri Oct 18, 2019 7:33 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 74338

Re: Why auto disassembly is tough

Right - Yep, some complex addressing there indeed ............

OK. I never expected more than one offset (or special attribute etc.) per argument, so it was coded that way.

Hmmm..... I need to see if I can work out what it's doing.
have you cracked it ?? Any help appreciated !

Andy.
by tvrfan
Fri Oct 18, 2019 2:50 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 74338

Re: Why auto disassembly is tough

No.

It seems a bit weird to me, in fact. Where is the code ? I'll have a look.

Andy.