Search found 417 matches

by tvrfan
Sat Apr 14, 2018 3:34 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

So uh, I did a thing.... Testing it here in a second The image is blurry AF, stupid Linux. Anyways, tvrfan your code is so good it's portable to Android. Well, from what techie stuff I read, Android is supposed to have a Linux kernel/core ! I am trying to keep the code 'clean' C/C++, so a certified...
by tvrfan
Sat Apr 14, 2018 12:09 am
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

3.06 - waiting for any more bugs to be found before I release it.

Fixed the 'add and Carry' comment for JC/JNC not including the CY flag
Removed incorrect debug info in subroutine listings (which caused the Prenc and comma problem)
Added comment for JC/JNC after INC or DEC opcodes.

Thanks John
by tvrfan
Fri Apr 13, 2018 7:42 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

I have this vect 2DAC 2E0D : N in V0.5 dir to get the Sub names beside the vector list. V3 is happy without it. I see it is, no longer legal in 3.05. I like the new error checking output to msg, very good. vect 2DAC 2E0D :N ^ Illegal Option I fixed a bug for multibanks (vect can point to a differen...
by tvrfan
Fri Apr 13, 2018 7:37 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

Thanks jsa - you spot the details I miss !! I can honestly say I completely missed INC and DEC as possibly being used with carry ... DUH ! Stupid error. Flag/bit names - again another slight catch 22 here - and an idea... For scratch registers (typically R30 - R40 seem to be used a lot), sometimes i...
by tvrfan
Thu Apr 12, 2018 2:48 pm
Forum: EECGeeks
Topic: EEC Primer Doc
Replies: 20
Views: 5617

Re: EEC Primer Doc

Link to my unpublished Wiki page. https://en.wikipedia.org/wiki/User:Cgrey8/sandbox/Ford_EEC_IV/V_Primer Being this is in my wikipedia user sandbox area, I don't know if permissions or access restrictions will crop up. From everything I can tell by google-searching, it appears others should be able...
by tvrfan
Thu Apr 12, 2018 2:46 pm
Forum: EECGeeks
Topic: EEC Primer Doc
Replies: 20
Views: 5617

Re: EEC Primer Doc

I haven't entirely worked out what some of the extra chips do either, for example what DUCE stands for DU ty C ycle E xpander Aha - so I was right then (in principle at least) So it drives PWM type actuators ? (idle valve is obvious one, but others - engine cooling fan, injectors, Air bleeds, er......
by tvrfan
Wed Apr 11, 2018 6:04 pm
Forum: EECGeeks
Topic: EEC Primer Doc
Replies: 20
Views: 5617

Re: EEC Primer Doc

Don't have any problem with a wiki - it's as good a way as any to compile lists and data, and answer questions a single spot. Lets try that !! Hope this all helps so far, and this is what I've worked out (especially for multibanks) from my previous low level experience, so it may still be wrong.... ...
by tvrfan
Wed Apr 11, 2018 4:26 pm
Forum: EECGeeks
Topic: EEC Primer Doc
Replies: 20
Views: 5617

Re: EEC Primer Doc

Reformated the questions slightly to drop double quoted parts - Again my understanding of how this works. Interrupt CALL is done by hardware, not code correct? It's just part of how interrupts work in the processor, when they are enabled. Correct? Yes, I'm just pointing out that the actual mechanism...
by tvrfan
Tue Apr 10, 2018 9:20 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

... Yes, I like that. How about adding bits affected by ands and ors'. Unless I am misunderstanding, if you add a symbol name for a single bit SYM 1234 "flagx" : T 5 (would be bit 5) then ANDs and ORs which are immediates (i.e. fixed values) should already be converted to 'flagx = 0;' or 'flagx = 1;'
by tvrfan
Tue Apr 10, 2018 7:10 pm
Forum: EECGeeks
Topic: EEC Primer Doc
Replies: 20
Views: 5617

Re: EEC Primer Doc

I probably need to explain that better ! To my understanding of how it works (someone correct this if it's wrong) When an interrupt happens, CPU sets flag in Int_status_reg, then current instruction is completed. Next, CPU internally does a 'CALL [0x2010+INTNUM]' , exactly like a subroutine call. So...
by tvrfan
Tue Apr 10, 2018 6:45 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

What you're not going to give me even a day before reporting a new bug ??? AAARRRGHHHH !!!!! Seriously but - you are right, I didn't spot that when checking. It does indeed need to have the CY flag added/subtracted for those opcodes. So this is Bug 1 already. I added a comment for JC/JNC because the...
by tvrfan
Mon Apr 09, 2018 9:17 pm
Forum: EECGeeks
Topic: EEC Primer Doc
Replies: 20
Views: 5617

Re: Why auto disassembly is tough

Thanks for that - Yes the multibank WAS my very first attempt, so not surprised. The order of things probably needs to be adjusted so it flows better. this was as I thought of stuff - have to start somewhere I won't amend anything for now and will put a version num on it for next revision - good ide...
by tvrfan
Mon Apr 09, 2018 4:55 pm
Forum: EECGeeks
Topic: EEC Primer Doc
Replies: 20
Views: 5617

EEC Primer Doc

Ok, well here's as far as I got from those odd moments....

Not formatted or anything yet, incomplete, just plain text, probably typos, but tell me if you reckon it's about the right level for "IT-phobes" !!
More will be added., if it's OK.
by tvrfan
Mon Apr 09, 2018 3:37 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

SAD Version 3.05 posted to Github

I have fixed a few things, added back the command to specify 'special lookup' subroutines, reworked CARRY (again), fixed a couple of other bugs I found when testing. There's probably still more bugs to find, but I ran this on all my collection of bins. Apart from known issues (like subroutine argume...
by tvrfan
Wed Mar 28, 2018 7:14 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

Oops, Yes, you are right. I'm not sure where I remembered that from !! Probably crossed over from something else ...
by tvrfan
Sun Mar 11, 2018 11:37 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

quick update - I'm having a total nightmare with getting the signed and unsigned subr names right....one of those things that looks quite simple, but across the various binaries it shows up the holes in my logic. The original setup didn't always work either. I might go back to a 'data scan' method (...
by tvrfan
Sat Mar 10, 2018 3:31 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

I'll add my 2c worth in case it helps any for SAD disassembler, I do often 'swop' the conditional logic over to produce a 'C' like setup with brackets CMP R32, R34; JNE 12345; if (R34 = R32) { .... } which 'reverses' the jump (i.e. only enters brackets if jump is NOT taken) So this can add confusion...
by tvrfan
Fri Mar 09, 2018 2:47 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: To carry or borrow ... Opinions ?

CMPW R32, R34 JC 12345 The jump occurs if R32 >= R34 (i.e. set PSW for R32 - R34) SB3W R32, R34, R36 JC 12345 The jump occurs if R32 >= 0 (i.e. the operation is R32 = R34 - R36) Many Thanks Bob. Oops, I missed the logic swop !! ( > flips to <= of course ! and note to self to double check operand or...
by tvrfan
Thu Mar 08, 2018 11:28 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

To carry or borrow ... Opinions ?

OK - with disassembler, I reckon there are different logic cases. Anyone have an opinion ? 8096 and 8061 docs imply that this CPU engine uses the BORROW strategy. i.e CARRY is effectively reversed for subtracts. So in SAD, I reckon this gives logic of - AD3W R32, R34, R36 R36 = R34+R32; JC 12345 if ...
by tvrfan
Mon Mar 05, 2018 2:47 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

% characters in a SYM name are not printed to the LST. Easy one. That's a 'classic' common bug in the way the standard IO library is called.... Found and fixed 4 calls. The right name might actually crash SAD ! (try %d or %x somewhere in a name and see what happens ) I'm thinking about reusing the ...
by tvrfan
Sat Mar 03, 2018 2:21 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

I prefer the SYM name or [Rf0+abcd] to be shown in output when using dir. It sounds like you are going away from this? SAD will print always SYM name if one defined for that address, or the correct operand form if not (i.e. 1234 for immediate, [R30] for indirect, etc) it always uses operand form in...
by tvrfan
Fri Mar 02, 2018 2:11 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

...There are many instances where a sub call is followed by a jump. What do you think of some manual dir entry to apply the subs cy setting code to the jump? What should happen at a cond. jump is that SAD goes back to the nearest previous opcode which sets the PSW. SAD then reuses the operands from...
by tvrfan
Tue Feb 27, 2018 5:51 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

Thanks Motorhead, may take you up on that later.... I am adding the manual 'special function' back (the F: for lookups) and attempting to fix up the signed/unsigned again in a different way, so that SAD has user defined, signature detect, guess from data, options for functions and subroutines and th...
by tvrfan
Fri Feb 23, 2018 7:56 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

What I said was wrong..... a sub command is actually a SYM + SCAN command...... Right - I need to go back to some basic rules - Comments please... BASE RULE - If a user specifies a command, it cannot be changed by SAD program. This so user can force what happens. BUT - for SUB commands finer detail ...
by tvrfan
Fri Feb 23, 2018 6:20 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

Hey tvrfan, here's a cool thing about git. You don't have to delete everything to update it. It tracks changes all on it's own. If you look at the tree in OpenEEC, you'll notice that the commits are much cleaner and more specific. If you'd rather delete and readd to hide your methods, by all means ...
by tvrfan
Thu Feb 22, 2018 9:41 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

subroutine args - from my memory so a bit hazy.... Funclu and tablu signatures are indeed supposed to be able to handle both preset registers AND inline arguments, and I agree they used to work.... but not for all the encoded address types - and I found that the old version did not handle the situat...
by tvrfan
Thu Feb 22, 2018 4:38 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

After your post about names I thought (a bit annoyed) "What is this guy talking about....." And then I realised...... So..... The subroutine size problem you reported (3.03) was actually twofold. 1) the size calculated by the dir command was not transferred correctly to the subroutine 2) the subrout...
by tvrfan
Thu Feb 22, 2018 1:59 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

jsa - You're talking about CARD ?? I'll SAD it here and have a good look. GitHub. Was messing about with structure to get git to push to github in single command (as it should). I thought I had pushed latest version of everything, but it's possible I screwed up the Windows exe, as it's built in a VM...
by tvrfan
Thu Feb 22, 2018 12:41 am
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

Hah !! I think I finally got the hang of using git and github commands instead of manually uploading the files.... V 3.04 on github - new layout with subdirectories. Fixed subroutine size issue (jsa) sorted JC and JNC and other conditional jumps for source printout (but I'm still not sure it's entir...
by tvrfan
Wed Feb 21, 2018 4:31 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

JSA - Thanks for that. Found - problem on subroutine args size is only from a directive command, not from an auto added one. But the Carry one goes deeper, and in fact I'm still not happy that it reports correctly. Carry may mean different limits (e.g for subtract it's a borrow, add it's an overflow...