Program in Assembler

I already have software written in assembly

E2Studio creates startup code in C.

Somewhere in there I have to add a call to the assembly program.

Where does it go? I'm guessing that it might be the .src directory

My assembly program starts at main: which is declared ".global"

Parents Reply
  • All my code was written in NXP's version of Eclipse (which they call MCUXpresso), so it is written in Gnu AS. It can be cut and pasted into the .src directory verbatim and E2Studio will assemble it. Of course, all the original startup code which set all the peripherals up is useless, and E2Studio wants to give me C to do that.

    What I want to do is make my assembler code run, and I presume I have to call main: from somewhere in E2Studio's generated startup code. That's what I'm trying to find out.

Children