Search found 428 matches

by tvrfan
Wed Jul 02, 2014 9:04 pm
Forum: EECGeeks
Topic: An indexed pointer and the content of register
Replies: 18
Views: 8963

Re: An indexed pointer and the content of register

Yep, that was the idea of the 'rbase' command, so if you add the lines rbase 6c 180 rbase 6e 280 rbase 70 380 rbase 72 480 and so on, SAD will automatically do the address resolution for you, so the [R72+99] as shown at top will be shown as [519]. Also, if you add a symbol for 519, the symbol name w...
by tvrfan
Wed Jul 02, 2014 3:58 pm
Forum: EECGeeks
Topic: An indexed pointer and the content of register
Replies: 18
Views: 8963

Re: An indexed pointer and the content of register

yep, looks like R6c through to R76 are KAM or RAM pointers .... 8414: a1,80,01,6c ldw R6c,180 R6c = 180; 8418: a1,80,02,6e ldw R6e,280 R6e = 280; 841c: a1,80,03,70 ldw R70,380 R70 = 380; 8420: a1,80,04,72 ldw R72,480 R72 = 480; 8424: a1,80,05,74 ldw R74,580 R74 = 580; 8428: a1,c0,07,76 ldw R76,7c0 R...
by tvrfan
Wed Jul 02, 2014 3:42 pm
Forum: EECGeeks
Topic: An indexed pointer and the content of register
Replies: 18
Views: 8963

Re: An indexed pointer and the content of register

I had a quick look at the binary, and that looks like an 8061, not an 8065, so that source code bit is WRONG!! If that's from my SAD program, then it got the CPU type wrong, which is interesting, as it seems to work OK on my (old) testbed version... So R14 is a general register of no special purpose...
by tvrfan
Wed Jul 02, 2014 3:21 pm
Forum: EECGeeks
Topic: An indexed pointer and the content of register
Replies: 18
Views: 8963

Re: An indexed pointer and the content of register

I'll cover basics again, just to make sure there is no confusion..... (0x means in hexadecimal) This instruction says, add 0x99 to the value in Register 72, and treat result as an address, and get the byte value in that address. A lot of the binaries have set(s) of data pointers which never change -...
by tvrfan
Wed Jun 11, 2014 12:34 am
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 108290

Re: Developing a disassembler. Send me your binaries to test

It would be titties if SAD spat out a comma delimited def file that can be opened up directly with BE if your interested Andy, contact me for specifics I did write a little test tool to go the other way, to convert those .xdf files into SAD commands, as a test. If you want to send me an example fil...
by tvrfan
Tue Jun 03, 2014 2:17 pm
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 108290

Re: Developing a disassembler. Send me your binaries to test

Sometimes SAD doesn't recognise the routine which does the table and function accesses, or it misses a chunk of code which calls that routine for a table - these are the kind of things I am trying to sort out for next release. Some of the subroutines which have embedded parameters are difficult to ...
by tvrfan
Sun Jun 01, 2014 11:33 pm
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 108290

Re: Developing a disassembler. Send me your binaries to test

ive noticed with the 2 bank eecv 4TAD.bin that the SAD doesn't find the tables that have already been defined. ie. the fuel startup table @ location C554. would this be because it is skipping code at the start? or does SAD have an issue with the 2 bank eecv's? Sometimes SAD doesn't recognise the ro...
by tvrfan
Sun Jun 01, 2014 5:55 am
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 108290

Re: Developing a disassembler. Send me your binaries to test

So the disassembler can determine which memory addresses are read/written? If so, is there a way to tap into that and get a "report" of only the addresses that are written to? YES, subject to some limits. 1. For ROM data structures like tables it only gets the start address for certain - the rest i...
by tvrfan
Sat May 31, 2014 4:34 pm
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 108290

Re: Developing a disassembler. Send me your binaries to test

That's a good generic solution, I agree. I do know, however, that most (all?) EEC programs initialise their RAM to defined values or zeroes, as part of their initialisation routine - this is also where they check the KAM, if they have one, and init. that too if necessary. So you can probably get the...
by tvrfan
Tue May 20, 2014 7:14 pm
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 108290

Re: Developing a disassembler. Send me your binaries to test

Thanks, haven't seen the 3AAB before... Yes, you should be able to set all the data structures by manual commands (as per the instructions with SAD), including things like a scale factor if you wish, so that the values represent realworld numbers (like ignition timing on all the binaries so far seem...
by tvrfan
Mon May 19, 2014 1:09 pm
Forum: EECGeeks
Topic: A/D counts vs voltage conversion
Replies: 56
Views: 34825

Re: A/D counts vs voltage conversion

The question is very relevant, particularly with the MAF. If you are trying to enter in a MAF flow sheet into various brands of software, you will find that the actual numbers you enter vary depending on the brand of software, and whether they believe the VREF for that sensor is 5.0 or 5.12 or what...
by tvrfan
Sun May 18, 2014 9:48 pm
Forum: EECGeeks
Topic: A/D counts vs voltage conversion
Replies: 56
Views: 34825

Re: A/D counts vs voltage conversion

I have been reading/scanning this thread, and it occurred to me that the questions about 1023 counts = 5.0V or 5.12v are actually completely irrelevant. Why ? Well remember that the raw A/D count is ALWAYS fed into one or more lookup functions to convert that value into something more meaningful for...
by tvrfan
Sun Apr 06, 2014 6:52 pm
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 108290

Re: Developing a disassembler. Send me your binaries to test

Hmmm.... There's no easy way to be absolutely certain. [NB. I only mentioned RAM above, the same goes for ROM addresses - the cal pointers (2020 on) go to ROM of course, not RAM] Even an emulation would need to go through all possible code paths, which means all possible input combinations and circu...
by tvrfan
Sat Apr 05, 2014 4:36 pm
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 108290

Re: Developing a disassembler. Send me your binaries to test

The quick answer to that question is "..partly.." The disassembler does a STATIC analysis, but does not do a full emulation of the code. So any RAM address which is embedded directly in the code will be captured (including psuedo RAM addresses for those extra comms chips) . However there are also a ...
by tvrfan
Sun Feb 23, 2014 3:54 am
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 108290

Re: Developing a disassembler. Send me your binaries to test

You mean like the tweecer def files ? I guess I could look at using the data in there to help identify names, funcs,tables etc in a binary. Not a bad idea to add a tool to use that format - I do have a sort of test convertor I made in a few minutes a long time ago for the A9L. Perhaps I should make ...
by tvrfan
Mon Feb 17, 2014 4:47 pm
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 108290

Re: Developing a disassembler. Send me your binaries to test

Sorry about getting a bit off topic ! Thanks for suggestions. Search of web shows there are apparently some odd problems with Borland and XP to do with some video drivers. It probably is an update or something like that - good idea. Found a good simple tutorial for Win32, for me anyway, "theForger's...
by tvrfan
Mon Feb 17, 2014 12:19 am
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 108290

Re: Developing a disassembler. Send me your binaries to test

Thanks for that - Yeah, doesn't seem to be an easy conversion path...Ah well... Did you know one of the chief developers of .NET was also (apparently) a chief developer for Borland's VCL library ??? Interesting.... Will have a look at Momo (or nearest name !). Open Watcom claims to be able to compil...
by tvrfan
Sun Feb 16, 2014 6:18 pm
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 108290

Re: Developing a disassembler. Send me your binaries to test

Everyone, Sorry for the recent absence, had a tech disaster on my PC .... [ Yeah, Yeah, Windoze XP, I know.... and worse, obsolete Borland Builder ...... but I'm too mean to pay for Win 7, and Win 8 looks like a mobile phone.... Oh, ...right, yes, of course I'm a dinosaur ! Anyway, it's just not for...
by tvrfan
Thu Jan 09, 2014 2:30 pm
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 108290

Re: Developing a disassembler. Send me your binaries to test

Yes. I have a few already, from TI Performance website, but always interested in more !
by tvrfan
Tue Dec 24, 2013 9:05 pm
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 108290

Re: Developing a disassembler. Send me your binaries to test

Yeah, heard similar stories too - also remember one with someone saying "hey, why does this code do a LDX and then a SRC, 0 (shift right cyclic of zero) ? SRC, 0 *HAS* to be redundant doesn't it ? Later it was discovered that the SRC was the fastest way to set condition codes on that particular CPU....
by tvrfan
Tue Dec 24, 2013 2:46 pm
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 108290

Re: Developing a disassembler. Send me your binaries to test

OK - here's a couple of things to chew on.... Here is an example of a variable argument/parameter subroutine - these from ANTI R38 is used as a loop count via DJNZ, and times 2 (two extracts from stack via R3a for each loop). Sub204 appears to be some kind of init routine (could be something else, o...
by tvrfan
Mon Dec 23, 2013 8:56 pm
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 108290

Re: Developing a disassembler. Send me your binaries to test

No worries - if you are interested, I can post a couple of code examples of what I'm talking about. Just ask. Always happy to explain code so that it helps as many people as possible, and hey, chances are someone will find a mistake, which is always useful. A long time ago, on proprietary operating ...
by tvrfan
Mon Dec 23, 2013 2:34 pm
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 108290

Re: Developing a disassembler. Send me your binaries to test

OH, forgot to add, the current SAD release will handle these subroutines, but not automatically, it needs directives to tell it what to do.
by tvrfan
Mon Dec 23, 2013 2:24 pm
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 108290

Re: Developing a disassembler. Send me your binaries to test

A quick update.... As you can see that last released version of SAD was not quite 6 months ago. I haven't stopped trying to improve things, but have hit a 'catch 22' with the way I designed the original code. Early EEC binaries are very simple, with all subroutine parameters being passed by register...
by tvrfan
Fri Dec 06, 2013 2:03 pm
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 108290

Re: Developing a disassembler. Send me your binaries to test

Following a request, here is the latest released version of SAD, which got lost after the restore. This one should do multibanks, but still doesn't handle everything quite right, but with some extra directives as per instructions, should be able to decode all binaries. Have included instructions aga...
by tvrfan
Sun Apr 14, 2013 4:34 pm
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 108290

Re: Developing a disassembler. Send me your binaries to test

NEW VERSION as requested in another thread. Main changes made to previous version of SAD. Filenames changed so that they open immediately in Wordpad or Notepad via Windows. - read only - xxx.bin binary file (unchanged) xxx_dir.txt directives file (changed from xxx.dir) xxx_cmt.txt comments file (cha...
by tvrfan
Sun Apr 14, 2013 4:28 pm
Forum: EECGeeks
Topic: ECU Probes, Software and Decompilers?
Replies: 24
Views: 12296

Re: ECU Probes, Software and Decompilers?

I thought that would be the answer, so I have posted a new version in the "developing disassembler" thread, to keep all the versions in the same place as it's neater....

As always, If you find a binary that doesn't work at all , I'm interested in it, please post it.
by tvrfan
Sat Apr 13, 2013 4:46 pm
Forum: EECGeeks
Topic: ECU Probes, Software and Decompilers?
Replies: 24
Views: 12296

Re: ECU Probes, Software and Decompilers?

Decipha, It's still a bit flaky as yet... It isn't working quite right for automatic recognition of tables and functions in multibanks, but should work (probably with gaps) for things like the Cobra bin now. I have changed it to allow alternate bank ordering in the bin file. NOTE - it can't tell if ...
by tvrfan
Thu Mar 28, 2013 7:38 pm
Forum: Lounge
Topic: Fuel saving scam. Have a laugh at this thing!
Replies: 12
Views: 4092

Re: Fuel saving scam. Have a laugh at this thing!

I just happened to see this topic.... There is quite a bit of theory that global warming (and cooling) is actually linked to the sun's output, which varies cyclically over time, but not in a simple way, as there seems to be many cycles which interact. The shortest cycle is the one many are familiar ...
by tvrfan
Sat Mar 23, 2013 12:41 am
Forum: EECGeeks
Topic: ECU Probes, Software and Decompilers?
Replies: 24
Views: 12296

Re: ECU Probes, Software and Decompilers?

I believe that rule is correct. What you may have missed is that there appear to be many different ways of putting a download into a file. So the first part of any disassembly is to find out where the code for each bank begins and ends. This is made even more complex because there must have been so...