Search found 482 matches

by tvrfan
Mon Mar 04, 2013 4:33 am
Forum: EECGeeks
Topic: 8065 bank swapping
Replies: 30
Views: 16513

Re: 8065 bank swapping

No worries, I will post a new version when I'm sure it's stable. Testing right now, bug fixing, and so on. Recognising subroutine calls with further embedded calls down to a table or function subroutine (and keeping track of the addresses) is a challenge.... I might release the source one day, it's ...
by tvrfan
Thu Feb 28, 2013 7:52 pm
Forum: EECGeeks
Topic: 8065 bank swapping
Replies: 30
Views: 16513

Re: 8065 bank swapping

Everyone, Just to let you know, I haven't disappeared on the disassembler stuff, just had a busy time with some other stuff, as life tends to do now and then.... At the moment I am trying to get the new disassembler version to - a) go a lot quicker (new chaining and searching, names,subroutines,jump...
by tvrfan
Fri Nov 09, 2012 5:08 am
Forum: EECGeeks
Topic: Replace Ford Code with Custom Code?
Replies: 14
Views: 7128

Re: Replace Ford Code with Custom Code?

I can see both sides of this argument - Yes modern processors probably ARE fast enough to run an OS and algorithms and easily keep up, after all some of the early EEC-IV code ran at only 8 Mhz, whereas today CPUs run at Ghz speeds. (even later complex ones ran at only 24 MHz ??) BUT many of the OSes...
by tvrfan
Tue Nov 06, 2012 7:46 pm
Forum: EECGeeks
Topic: Replace Ford Code with Custom Code?
Replies: 14
Views: 7128

Re: Replace Ford Code with Custom Code?

Sorry to be a wet blanket here, but just trying to 'keep it real' as they say.... I think quite a few of the original Ford coded ECUs are already highly configurable for stuff like num of cyls, EDIS or TFI, bank or sequential, EGO or not..... So I do (continue to) wonder if it might be better to cho...
by tvrfan
Sun Nov 04, 2012 11:40 pm
Forum: EECGeeks
Topic: Replace Ford Code with Custom Code?
Replies: 14
Views: 7128

Re: Replace Ford Code with Custom Code?

does anyone know if there is a C or C++ complier for the 8096 ? That's probably the best place to start, and then opcode/binary to drive the HSI/HSO interface....
by tvrfan
Wed Oct 24, 2012 5:53 am
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 109980

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

Guys, New version of disassembler, more bug fixes and now recognises more data structures automatically. (just a new exe, other stuff is the same) It can get quite slow with multibank binaries and lots of symbols, so this new version has quite a lot of changes to speed up the processing. It's notice...
by tvrfan
Sat Sep 08, 2012 5:45 pm
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 109980

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

Just a quick note to say that I've found that some 4 bank binaries use a different table lookup mechanism to the single bank one - this means the disassembler will not spot those tables automatically.

Working on this now....

Andy.
by tvrfan
Thu Sep 06, 2012 11:51 pm
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 109980

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

MULTIBANK - MULTIBANK - MULTIBANK - MULTIBANK - Well here it is -------- the multibank disassembler. Tested on single, double and 4 bank binaries. No guarantees it works for everything, but looks good. Still doesn't recognise everything, not perfect, but does get most functions and tables automatica...
by tvrfan
Wed Sep 05, 2012 6:05 pm
Forum: EECGeeks
Topic: 8065 bank swapping
Replies: 30
Views: 16513

Re: 8065 bank swapping

Yeah, there is some deja vu here, I agree. From the code I've disassembled so far, what I know is that the 8065 knows SOMEHOW how to return from a subroutine to the caller's bank. Nothing else makes sense. The same opcodes I see all over the binaries is rbnk, call, <new bank> pushflags.......popflag...
by tvrfan
Mon Sep 03, 2012 6:37 pm
Forum: EECGeeks
Topic: 8065 bank swapping
Replies: 30
Views: 16513

Re: 8065 bank swapping

Fair enough - you could build a kernel module for the realtime stuff. Back on topic - I now changed my mind and decided that pushflags does NOT push 2 words onto stack after all. I messed up the maths on the example in the document. I now reckon the 8065 pushflags pushes PSW + Bank ref(s) instead of...
by tvrfan
Fri Aug 31, 2012 6:15 am
Forum: EECGeeks
Topic: 8065 bank swapping
Replies: 30
Views: 16513

Re: 8065 bank swapping

Yup. 'AA' is the catch code of my very early EEC-IV euro box (1985). It has no EGO or emission controls, no KAM, bank fired injection, straight TFI ignition (not even a no 1 cyl slot). For a V6 engine with manual gear change. I posted the listing in the diasassembler thread. It's only 8K code (0x200...
by tvrfan
Thu Aug 30, 2012 7:03 pm
Forum: EECGeeks
Topic: 8065 bank swapping
Replies: 30
Views: 16513

Re: 8065 bank swapping

Again, have a good read and understand of the AA code. I'm only repeating this advice because so far it's the simplest and smallest code I have ever seen for an EEC-IV box. The HSI/HSO setup looks complicated in the various document descriptions, but I looked at the driving code instead, and decided...
by tvrfan
Wed Aug 29, 2012 6:37 pm
Forum: EECGeeks
Topic: 8065 bank swapping
Replies: 30
Views: 16513

Re: 8065 bank swapping

Have a look at my 'AA' code for the most basic driving of HSO. (in disassembly thread). I've put lots of comments on listing. The code calculates an 'ON' time, and an 'OFF' time for each injector bank, and sends it to HSO. It's then queued internally in the H/W. it has very simple handling of overfl...
by tvrfan
Wed Aug 29, 2012 12:50 am
Forum: EECGeeks
Topic: 8065 bank swapping
Replies: 30
Views: 16513

Re: 8065 bank swapping

Cgrey, Of course you are right, it would NOT compare the value to 50 in that example. (Wot a dumba.ss is me !!) I made that mistake by mixing up two examples.....Sorry.... The first compare was from binary which did its addresses as R30 = [5f52+R42], so R42 starts at zero, and the example which sets...
by tvrfan
Tue Aug 28, 2012 5:20 pm
Forum: EECGeeks
Topic: 8065 bank swapping
Replies: 30
Views: 16513

Re: 8065 bank swapping

Yes that's right. To be as clear as possible. My disassember adds a column with high level code, quite close to 'C' in style. I find that easier to read and understand, though I can understand it's not to everyone's taste. 'C' uses '*' and '&' for address stuff and I decided not to use that (the exa...
by tvrfan
Mon Aug 27, 2012 4:55 pm
Forum: EECGeeks
Topic: 8065 bank swapping
Replies: 30
Views: 16513

Re: 8065 bank swapping

Beautiful - thanks Cgrey - I did try that but didn't do it right....I'll check the fixed up post for my guide. And a note while I'm here - I think we all need to be pretty rigid on what 8065 does and does not, by trying to be clear about 1. what can be proved, 2. what is probable, 3. what is a best ...
by tvrfan
Mon Aug 27, 2012 1:49 am
Forum: EECGeeks
Topic: 8065 bank swapping
Replies: 30
Views: 16513

Re: 8065 bank swapping

Having scanned the XDT2 for odd word addresses and looked at the code, I'm not convinced they are for another register bank. What I found was that most of those odd words overlap with bytes which are all bit flags, and so they could be a sneaky way of updating the flags. I'm not sure either way. som...
by tvrfan
Sun Aug 26, 2012 8:04 pm
Forum: EECGeeks
Topic: 8065 bank swapping
Replies: 30
Views: 16513

Re: 8065 bank swapping

HMM.... I see that there are quite a few odd register references for word opcodes in the XDT2 binary.....but only to about 10 or so addresses. So I'll take that back and say there may be evidence of a second register bank. I'll check some more, and if their even address can't possibly be an overlap/...
by tvrfan
Sun Aug 26, 2012 6:48 pm
Forum: EECGeeks
Topic: 8065 bank swapping
Replies: 30
Views: 16513

Re: 8065 bank swapping

Cgrey, That's all Ok, and fair to question. What I did in that doc was to try to say "This fact MUST be true from the code" , to try to establish a firm base we can agree on, and then we can try to add the other detail. There's nothing I've seen so far to give any clue about any register or RAM bank...
by tvrfan
Sun Aug 26, 2012 5:01 pm
Forum: EECGeeks
Topic: 8065 bank swapping
Replies: 30
Views: 16513

8065 bank swapping

Now that I have been playing around with disasembling multibank binaries, I've run into problems with how to work out what Bank the data is in, and how the details of bank swops actually work. I decide to type up a doc with my conclusions, for comment by anyone interested. (MS Word format) It includ...
by tvrfan
Sat Aug 18, 2012 5:24 pm
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 109980

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

Default rules are that 'unknown' blocks are printed in sets of 8, except 'fill' (i.e. all 0xff) which are printed in sets of 16. No magic (unfortunately) The disassembler did not recognise the table or function lookups on this binary (need to investigate the code changes) so I put the specs in manua...
by tvrfan
Sat Aug 18, 2012 12:23 am
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 109980

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

Nearly working.... Attached is my latest acheivement on XDT2 (from cgrey8). it's pretty good, but has some bits not analysed correctly. (2 bank 8065) There appears to be a separate 'switch' for code (via BNK instructions) and data, because I had to force the data analysis bits to always run in bank1...
by tvrfan
Thu Aug 16, 2012 2:20 am
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 109980

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

APPEAL FOR 8065 INFO ... PLEASE... Guys, I have got a multibank disassambler working, but it gets its links messed up sometimes (ie. the subroutine 'tree') and I'm wondering what the BANK SELECT register does (I think this was in a previous thread), but also if the instuction pushf (push flags) also...
by tvrfan
Thu Aug 09, 2012 4:42 pm
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 109980

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

Got a copy of XDT2 in an old thread (assuming its the right one.....). This looks like a 2 bank 8065, using a binary editor to view it, with a start at 0xe000, so disassembler won't handle that yet, unless you trimmed the file down (and then would lose half of it). Did you try trimming the file ?? I...
by tvrfan
Thu Aug 09, 2012 4:35 pm
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 109980

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

Cgrey, Yes possibly/probably some kind of wierd loop condition - I wouldn't be surprised. Disassembler has to loop backwards sometimes for the structure, so I have probably caused a new bug to appear.... Please send or post the binary and I'll have a look at it, armed with the debug tools.... 8065 a...
by tvrfan
Wed Aug 08, 2012 4:57 pm
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 109980

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

Guys, Here is an updated version of disassembler which will now recognise encoded function and table addresses, including ones embedded in subroutine call (i.e accessed via 'pop'), and will correctly recognise signed and unsigned functions and tables. Also added variable param subroutines (e.g. EARS...
by tvrfan
Thu Jul 05, 2012 6:13 pm
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 109980

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

If you get error - "Missing VCL35.bpl" (or similar) when trying to run the disassembler. This was reported to me today, and I found out that what Borland tell you about how to release a package is actually not complete. Certain libraries are still not included by default, this build should correct t...
by tvrfan
Sat Jun 09, 2012 1:29 am
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 109980

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

I'll be curious to learn why it's working for some stack-located offsets and not with others. I would've just assumed if it could do it for one, it could do it anytime this is done. I'm sure there is a difference and I'm sure when you figure it out, you'll be like...DUHH! But until then, it remains...
by tvrfan
Fri Jun 08, 2012 12:15 am
Forum: EECGeeks
Topic: Developing a disassembler. Send me your binaries to test
Replies: 178
Views: 109980

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

OK guys, as promised, here is the disassembler, with instructions. Windows executeable, should be OK on any windows 32 bit (98 onwards). Can put .exe anywhere you like. Cgrey - put this somewhere else if it makes sense... NO it's NOT finished, some things still don't work right in automatic mode, bu...
by tvrfan
Sat Jun 02, 2012 8:05 pm
Forum: Hardware Discussions
Topic: VANE (Flapper airflow sensors and their calibrations)
Replies: 1
Views: 895

VANE (Flapper airflow sensors and their calibrations)

Is anyone a VANE/Flapper airflow expert ? I'm trying to understand a bit more about the calibration, and why the code in my box has a separate air_density correction table, as well as a (A/D) raw to volume (? I guess) table. I can see the calc for temp to air density (which all makes sense), but the...