Search found 417 matches

by tvrfan
Wed Jun 13, 2018 2:50 pm
Forum: EECGeeks
Topic: multibank binaries - checksum
Replies: 3
Views: 1797

Re: multibank binaries - checksum

Thanks Bob, will check that out....

[2 mins later ]

Damn, I should have spotted that....Now you pointed that out, it's quite obvious.
Interesting that the routine stops at a slightly different end address for each bank....
by tvrfan
Mon Jun 11, 2018 2:35 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

Just a note, I'll be away from home for a little while, so may not reply quickly .....
by tvrfan
Mon Jun 11, 2018 2:34 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

Um.. I haven't tested that in a while, but SAD does have a D option, where D <add> will add a fixed offset to a subroutine argument for printout. In a way it's similar to an E: but that's an address encoded to form an 'rbase+offset'. So try out a D option in the argument list , e.g. SUB 1234 : W D 4...
by tvrfan
Mon Jun 11, 2018 2:23 pm
Forum: EECGeeks
Topic: EEC Primer Doc
Replies: 20
Views: 5617

Re: EEC Primer Doc

Thanks for your response - Yes that doc is just a draft at the moment, and we were seeking comments on the those basics, and intended to add more. I'm happy it all makes sense so far. I can tell you something about the main program now, and yes, it needs to go in the Primer Doc. Basically there is a...
by tvrfan
Sat Jun 09, 2018 2:55 pm
Forum: EECGeeks
Topic: multibank binaries - checksum
Replies: 3
Views: 1797

multibank binaries - checksum

To any long time experts out there - Do you know if the multibanks do a checksum or not ? Does it do one for each bank ? The checksum obvious for single banks like A9L, but I'm looking at BWAK3N2 (which appears to use the secondary stack R22 as the background task pointer?) and I can't see how or wh...
by tvrfan
Fri Jun 08, 2018 3:04 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

I had not considered the restricted address range idea for symbols as well, but I don't see why not.... I'll have a think about best command syntax....I guess this can be done to specify separate read and write symbols as well..... I have made a BIG internal change to do with the way jumps are organ...
by tvrfan
Thu Jun 07, 2018 11:45 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

You can assign sym names to a register (say R6a) and an address (say 180), but at the moment I haven't included the idea of an address range for each rbase. Can add this option in the user command, but haven't thought of a way to do this automatically (yet) I can add address ranges (and relevant che...
by tvrfan
Thu Jun 07, 2018 2:35 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

No lookups as such. What I coded is that when opcode is a conditional jump, it looks backwards for the nearest opcode which changes the PSW, up to 16. if it finds a CMP, then it has the operands to do "if (a = b)" style, if not it uses the "R30 = 0" style (from the last written to register with PSW ...
by tvrfan
Wed Jun 06, 2018 6:58 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

jsa - This from 3.07 testing (CARD) in which I was supposed to have fixed R0 stuff.... logic is better, but still not right.... no sym names in my testing... 3bee: 91,04,38 orb R38,4 R38 |= 4; 3bf1: c7,74,9f,38 stb R38,[R74+9f] [R74-61] = R38; 3bf5: c7,74,dd,00 stb R0,[R74+dd] [R74-23] = 0; } } 3bf9...
by tvrfan
Sun Jun 03, 2018 3:04 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

Thanks again jsa. Comments - hmmm... As we differ on this, I'll consider a way to make the behaviour configurable ! I see that I must double check when SAD puts newlines in - I honestly didn't realise I had coded newlines in with/before symbol names.... I'll do a print layout check. I agree you shou...
by tvrfan
Thu May 31, 2018 3:21 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

Most other if DI's have a following FF. Maybe they just stayed with the convention until the compiler was tweaked. Being a creature of habit, I looked to across for it, and instantly thought where is it. So it could be worthwhile commenting all, for no other reason than consistency and crazy accusa...
by tvrfan
Mon May 28, 2018 12:35 am
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

0FAB - Oh dear, that's totally wrong I can quickly see why though - it's the repeated 0xff (= NOP) before the jump. Currently SAD code only expects ONE of each type of 'skippable' opcode for fingerprint of the first jump (i.e. NOP, DI, etc). OK - - - will change that to different logic check. (why t...
by tvrfan
Mon May 21, 2018 4:58 pm
Forum: EECGeeks
Topic: The OpenEEC Project
Replies: 25
Views: 6335

Re: The OpenEEC Project

What are the differences between each of the CARD pair and each of the anti pair? OOPS ! - yes some duplicates in there. CARDs are duplicates, but ANTI isn't - but don't know where (YET). Hmmm....I need to put together a little linux script to compare binary files - the standard tools don't work......
by tvrfan
Mon May 21, 2018 3:26 pm
Forum: EECGeeks
Topic: The OpenEEC Project
Replies: 25
Views: 6335

Re: The OpenEEC Project

When jsa stops finding bugs in my SAD code......(yeah, just joking...it's excellent work in reality) I will post more bins to Open EEC. In the meanwhile, If anyone has a specific request, either from my collection or by posting a .bin, I will attempt to decode it and post it to Open EEC. The usual d...
by tvrfan
Thu May 17, 2018 4:17 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

Hah !! Just discovered why I couldn't get signed/unsigned to work reliably in SAD. Would you believe there were THREE minor bugs. Each bug on its own didn't affect anything, even though it was wrong, but acting together they screwed up the reliable logging of the bit flags used to mark signed/unsign...
by tvrfan
Tue May 01, 2018 10:50 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

I think I see what you are getting at , e.g. where an initialise list loads the two bytes separately, and your formula suggestion fits right in with my "class" idea. Your example - if you specify a register as a temperature, everything related to it gets scaled as a temperature too. My idea was to s...
by tvrfan
Tue May 01, 2018 2:49 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

My original idea was to show a whole ENTRY (or CELL) as one printed row, which matches my IT programming view. This matches up with a TABLE which is a 2D structure with rows and columns. For a command , you specify one entry of a struct and then SAD then fills in the following entries automatically ...
by tvrfan
Mon Apr 30, 2018 2:45 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

OR and AND will show the B6_Rx style if it's an immediate opcode value and if there's at least one bit of register declared as a symbol. Or that was my intent anyway. (which links into the idea of declaring a FLAG type byte instead.) Structs - they should default to decimal - I did wonder if I shoul...
by tvrfan
Sat Apr 28, 2018 12:56 am
Forum: EECGeeks
Topic: EEC Primer Doc
Replies: 20
Views: 5617

Re: EEC Primer Doc

had a weird problem with layout in that Word doc, so put it back to text for now.... here is v4 - didn't get to end, but reordered and adjusted to try to improve flow. Tried to remove tech terms where possible, and redundant bits. Incorporated updates from cgrey, and removed and reworked the binary ...
by tvrfan
Thu Apr 26, 2018 5:00 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

found THIS at https://linux.die.net/man/2/openat. "Description The openat() system call operates in exactly the same way as open(2), except for the differences described in this manual page. If the pathname given in pathname is relative, then it is interpreted relative to the directory referred to b...
by tvrfan
Wed Apr 25, 2018 6:35 pm
Forum: EECGeeks
Topic: The OpenEEC Project
Replies: 25
Views: 6335

Re: The OpenEEC Project

Have a look at the documents in EEC-disassembler on github (as per my sig below). It is crossref'ed in Open EEC, but probably Open EEC has out of date version (?). I tried to make the SAD docs start off as simply as possible, and gradually build up to more complex commands. So see if the basics help...
by tvrfan
Wed Apr 25, 2018 3:29 pm
Forum: EECGeeks
Topic: The OpenEEC Project
Replies: 25
Views: 6335

Re: The OpenEEC Project

Had a look at LA3, and I see I've managed to create a bug in 3.06 .... I can't immediately fix this either.... Workaround - OK - some bins do a PUSH(address) and a RETURN instead of a jump. Example is la3 2020: a1,20,02,10 ldw R10,220 STACK = 220; 2024: c9,00,20 push 2000 push(2000); 2027: c9,1c,21 ...
by tvrfan
Tue Apr 24, 2018 3:01 pm
Forum: EECGeeks
Topic: EEC Primer Doc
Replies: 20
Views: 5617

Re: EEC Primer Doc

Sorry, not yet, back to this now and will read doc and post a new version in a few days. Released 3.06 first, as I had a few bugs to fix...
by tvrfan
Tue Apr 24, 2018 2:56 pm
Forum: EECGeeks
Topic: The OpenEEC Project
Replies: 25
Views: 6335

Re: The OpenEEC Project

The easiest thing is probably to post/attach the binary, and I'll run SAD against it here.
This will (I hope) give you a fast result and then you can learn more at leasure, and have a starting point.

What error do you get trying to run SAD on your computer ??
by tvrfan
Tue Apr 17, 2018 11:44 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

A suggestion - I wouldn't be surprised if I've forgotten to fully check if a file is correctly opened/created.

I note in the dump there is a 'file not found' in a few places....
typically it does segv as the file handle (a pointer) will be zero (or -1)
by tvrfan
Tue Apr 17, 2018 6:11 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

SAD 3.06 released

I was planning to make some more changes, but in the process found and fixed quite a few little bugs, so have decided to release as 3.06 See 'versions.txt' for all the fixes. Have gone to jsa's suggested idea of 'LR' for long register (and so on). -------------------------------------------- Also - ...
by tvrfan
Mon Apr 16, 2018 5:19 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

Ah right......understand. Just in case it helps ...... I agree there is some weird combination of the two characters CR and LF at the end of each line. Dos and Linux do seem to deal with these differently (can't remember, but I think DOS always inserts a CR ? or other way round ? Um...) Anyway, I ty...
by tvrfan
Mon Apr 16, 2018 2:24 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

Darn it... These dos/Unix differences are messing up my modifications... Guess I'll have to fix them again... (Don't merge those pull requests yet) Like what ? Not used Android, but I only have a couple of DEFINES in SAD for the differences between DOS and UNIX, which are 1. File access - DOS + Win...
by tvrfan
Sat Apr 14, 2018 6:52 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

Motorhead Does Android provide for calling a console prog from the GUI ? if it's Linux based you should be able to. This way the actual SAD code stays identical and the GUI is a separate wrapper (which is what I did for Win32). [which reminds me, must look at a Linux GUI / Xwin wrapper ] glad that S...
by tvrfan
Sat Apr 14, 2018 3:41 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 71151

Re: Why auto disassembly is tough

In CARD SAD misses code from 0x4510 to 0x459E. The dog chasing its tail seems to be R34 = 4510 and push(R34) Happens in A9L as well. This is down to the way SAD chops up the code into 'blocks' and then links them with a tree structure. It sees no link between the load and the push/ret. When I put c...