user39665: Hi I'm new to arduino and im using it to learn assembly for my computer hardware 101 class, I read online that I can make the IDE accept .s files and compile them to the board but I dont know how to do this (something about editing the source code and recompiling the IDE?).
Could I get a step by step walk through? Assuming it's relatively simple, or just a link to some relevant documentation that's not a literal reference manual :-).
EDIT
As terrible as it is,I'm working from a macbook pro

user4143: The IDE should be able to accept .S files (not .s - the difference is very important: .S will be preprocessed, .s won't).
Just create a new sketch, and create a new tab called whatever.S (obviously rename the whatever to whatever you want to call it.
Then in the main sketch .ino file put something like:
extern "C" void myAssemblyMain();

void setup() {
    myAssemblyMain();
}
void loop() {
}

That will then call the function myAssemblyMain: in your assembly file and not much else.
(Note: I haven't tested this since I don't use the Arduino IDE).

39665: <p>Hi I'm new to arduino and im using it to learn assembly for my computer hardware 101 class, I read online that I can make the IDE accept .s files and compile them to the board but I dont know how to do this (something about editing the source code and recompiling the IDE?).</p>

<p>Could I get a step by step walk through? Assuming it's relatively simple, or just a link to some relevant documentation that's not a literal reference manual :-).</p>

<p><strong>EDIT</strong>
As terrible as it is,I'm working from a macbook pro</p>
 4143: <p>The IDE should be able to accept <code>.S</code> files (not <code>.s</code> - the difference is very important: <code>.S</code> will be preprocessed, <code>.s</code> won't).</p>

<p>Just create a new sketch, and create a new tab called <code>whatever.S</code> (obviously rename the <code>whatever</code> to whatever you want to call it.</p>

<p>Then in the main sketch <code>.ino</code> file put something like:</p>

<pre><code>extern "C" void myAssemblyMain();

void setup() {
    myAssemblyMain();
}
void loop() {
}
</code></pre>

<p>That will then call the function <code>myAssemblyMain:</code> in your assembly file and not much else.</p>

<p>(Note: I haven't tested this since I don't use the Arduino IDE).</p>
