View unanswered posts | View active topics It is currently Wed Nov 20, 2019 12:14 pm



This topic is locked, you cannot edit posts or make further replies.  [ 21 posts ]  Go to page Previous  1, 2, 3  Next
SM Re-Development in GCC + Customisations/fixes 
Author Message
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15342
Location: Home sweet home!
Work has begun! I got 6 commits in earlier tonight on the roof of the car while enjoying the view of the Barcelona skyline. The next 6 will be harder, but still pretty easy with some luck. Fingers crossed.

Image

Image

Image

Image

Image

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Sat Aug 25, 2012 3:57 am
Profile WWW
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15342
Location: Home sweet home!
I got another commit in on this tonight, next commit should yield a binary of what we already have, but repeatable, and as a source base point.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Tue Aug 28, 2012 8:54 pm
Profile WWW
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15342
Location: Home sweet home!
Getting close now!

GAS seems to be crappy, or I don't know how to use it properly. Maybe I need to patch binutils to work better.

from "bset something, somethingelse" I'm getting the following instruction:

1C 00 0C 01

however it should give:

4C 0C 01

because the high bytes of the "16 bit operand" are zeros and it's static, not dynamic. 25% code space saving there, cycle count is equal, though, so no faster.

I want a resolution for this.

Just changed the operands to literal 8 bit, and no better behaviour. I think GAS simply doesn't support this, or have the sophistication necessary...

Fred.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Wed Aug 29, 2012 3:07 am
Profile WWW
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15342
Location: Home sweet home!
GAS definitely has the opcodes in the binutils source, it just won't use them for some reason. More tomorrow.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Wed Aug 29, 2012 3:49 am
Profile WWW
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15342
Location: Home sweet home!
Code:
if (format & M6811_OP_DIRECT)
                continue;

Motherfucker!

Thanks Sean for your help!

Fred.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Wed Aug 29, 2012 5:02 pm
Profile WWW
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15342
Location: Home sweet home!
This new serial monitor s19 removes the requirement for a PNP hack for FTDI devices. Other side effects are not tested, however it's strongly likely that it doesn't have any for our application. I suggest using this on new hardware as an interim solution until I can engineer a proper solution. Idea (of hacking the binary directly) by Sean, all reverse and forward engineering by yours truly. This is disgusting, but you'll like it, so enjoy.

Fred.


Attachments:
File comment: Dirty dirty hack :-(
seank.hackers.special.by.fred.s19.zip [2.43 KiB]
Downloaded 296 times

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
Wed Aug 29, 2012 7:10 pm
Profile WWW
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15342
Location: Home sweet home!
I have an almost perfect match on the serial monitor of old from code now. Much of the problem was this situation:

Code:
dbset  = 0x4C
dbclr  = 0x4D
dbrset = 0x4E
dbrclr = 0x4F

dldab   = 0xD6
dldy    = 0xDD
dldaa8  = 0x86
dldaa9  = 0x96

dstaa   = 0x5A
dstab   = 0x5B
dstd    = 0x5C
dsty    = 0x5D

dcmpa   = 0x91

Each of those instructions is real if you remove the d which stands for direct. Unfortunately, as illustrated above the direct instructions are _never_ used in GAS.

Another problem is that the source I had wasn't complete. It was nearly complete, though.

I'll make my almost perfect match perfect tomorrow, at which point I have a solid base line for both the SM and binutils testing/dev.

Solid progress tonight! :-)

Fred.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Fri Aug 31, 2012 12:11 am
Profile WWW
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15342
Location: Home sweet home!
(03:00:11) Fred: [gnu-binutils bac1ae0] This, ugly as it may be, builds EXACTLY the serial monitor from the firmware lib dir. With time and binutils tweaks I'll make it clean, then I'll make it behave as it should.
(03:00:11) Fred: 3 files changed, 555 insertions(+), 148 deletions(-)

3am, and I beat the bastard fair and square! :-)

Binutils fixes are next on the menu for this thread.

Fred.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Fri Aug 31, 2012 2:02 am
Profile WWW
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15342
Location: Home sweet home!
http://issues.freeems.org/view.php?id=668

Gave it an arbitrary target version. I might make sub-issues with each feature/change etc.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Fri Aug 31, 2012 3:03 am
Profile WWW
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 15342
Location: Home sweet home!
Let's see if we've got a spy, or not. Fuck you, James Murray!

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Sat Sep 01, 2012 9:51 pm
Profile WWW
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 21 posts ]  Go to page Previous  1, 2, 3  Next

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF. ColorizeIt.