MS-II code in Assembler?

A forum for discussing the creation, modification, and loading of embedded code for B&G MS-I/MS-II.
Forum rules
Read the manual to see if your question is answered there before posting. Many users will not reply if the answer is already available in the manual.

If your question is about troubleshooting, configuration, or tuning, you MUST include your processor type (MS-I or MS-II) and code version in your post. If your question is about PCB assembly or modifications, you must also include the main board version number (1.01, 2.2 or 3.0).

If you have questions about MS1/Extra or MS2/Extra code configuration or tuning, please post them at www.msextra.com Such questions posted here will be moved to: a temporary MSextra sub-forum, where they will be removed after 7 days

The full forum rules are here: Forum Rules, be sure to read them all regularly.
Post Reply
Adnan
MegaSquirt Newbie
Posts: 10
Joined: Fri Oct 17, 2008 11:19 am

MS-II code in Assembler?

Post by Adnan »

Hi,

I would like to make some modifications to the code but I'm C-impaired. Aside from the syntax, I get lost with the multiple files structure, etc. However, I'm comfortable with Assembler.

One way for me to go about understanding the code structure (even basic things like how interrupts are sturctured) would be to decompile the hex code to Assembler and go from there. I realize that this is still a bit of a nightmare because there are no comments and no sensible variable names but it's worth a shot. Has anyone done this already? If not, what software would I need to convert the hex file into Assembler? With PIC microcontrollers, I know my way around, but with the Motorola uC, I'm starting from scratch.

Does a flowchart for MS-II code exist? Something like a Software Architecture or Software Design Specification?

Thanks,
Adnan
duxthe1
MegaSquirt Newbie
Posts: 1
Joined: Sun May 20, 2012 2:27 pm

Re: MS-II code in Assembler?

Post by duxthe1 »

First off, new guy here.

While I have no answers to your questions, I too would like to have the answers. Like you, I am relatively comfortable in Assembler, but not in C. My last project used a PIC to read O2 voltage, display its value, and output a user defined O2 voltage. It took a bit over 1800 lines of code to do it. After a project like that I feel like there is more I could squeeze out of my MS if I could use a language I am comfortable with to program.
90 Mercedes 300 TE 4-Matic
T3 turbo @ 9 PSI
MS2 Extra V3.0
hnamaky
MegaSquirt Newbie
Posts: 1
Joined: Thu Jul 05, 2012 10:22 am

Re: MS-II code in Assembler?

Post by hnamaky »

Adnan wrote:Hi,

I would like to make some modifications to the code but I'm C-impaired. Aside from the syntax, I get lost with the multiple files structure, etc. However, I'm comfortable with Assembler.

One way for me to go about understanding the code structure (even basic things like how interrupts are sturctured) would be to decompile the hex code to Assembler and go from there. I realize that this is still a bit of a nightmare because there are no comments and no sensible variable names but it's worth a shot. Has anyone done this already? If not, what software would I need to convert the hex file into Assembler? With PIC microcontrollers, I know my way around, but with the Motorola uC, I'm starting from scratch.

Does a flowchart for MS-II code exist? Something like a Software Architecture or Software Design Specification?

Thanks,
Adnan
Hi,
Where did you get the C-code for the latest version of the MS-II, I got the earlier version (V1.4.C) without CAN interface and looking for the one with CAN (V2.1). I do not remember where, but I've seen a very good commented assembly version of the V2.1 which I've downloaded for reference and studying.

Thanks, HN
Post Reply