asm files

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Could someone tell me quickly how to include a ASM file in a Atmel Studio Project....

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

how to include a ASM file in a Atmel Studio Project....

There is no one singular quick answer to this. It depends on what kind of project.

It could be an Atmel Assembler project, and then you can simply add your assembler code to the source file (or place it in a separate file and do an include of that file into the "mqain" source file at some appropriate place.

Itf it is a project in C (using AVR Toolchain or some other verison of the avr-gcc compiler) then the assembler need to be written in the GNU dialect, and assembled by the avr-as assembler, and finally linked together with the rest of the project.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks....

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

you also may use inline assembler in your c-code
http://www.nongnu.org/avr-libc/u...

-sb