Go Down

Topic: Is ASM possible with Arduino? (Read 1 time) previous topic - next topic

ubotbuddy

I just heard a rumor on another form that Assembler was possible with Arduino.

Back in the day I was a heck of an Assembler programmer (for the PC that is).

Buddy

frank26080115

#1
Aug 31, 2012, 05:13 am Last Edit: Aug 31, 2012, 05:15 am by frank26080115 Reason: 1
http://www.nongnu.org/avr-libc/user-manual/inline_asm.html

or you can just start writing everything in .S files and use the assembler through command-line
Freelance engineer, consultant, contractor. Graduated from UW in 2013.

ubotbuddy

Thanks Frank!

Something to read this weekend.

Buddy

Mitxel

If you know how to write assembler files, the simplest method to include those ".S" files in your project is the "iard" method.

You must use the GCC assembler syntax that is a bit different from the AVR assembler syntax. 

A minor problem is that the ". S" files should be placed in a subdirectory of "libraries". "\arduino-1.0.1\libraries\AssemblerFiles" for example. You can use as many assembler libraries subdirectories as you wish but must reside in "libraries" directory, not in your projects/sketches directory.

http://arduino.cc/forum/index.php/topic,37588.0.html

Note: the syntax, general estructure and philosophy of inline assembly, asm(), __asm__(), and so on, is a real nightmare  designed by sadists computer scientists

Go Up