converting from atmel ASM to GCC gas

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

Hi,

I switched my PC to linux, everything works fine, avr-gcc, avrdude, etc.

However my bootloader was written in "atmel" asm style using avrasm2 compiler. I know I could install wine to run it but I would prefer to convert it to the GCC format assembler.

Is there some tool or script that do it? Or is it faster to convert it by hand? I have a couple of macro and ifdef inside.

Thanks, Frédéric.

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

Quote:

Or is it faster to convert it by hand?

That. On the whole it's only the directives that are going to be different.

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

Quote:
On the whole it's only the directives that are going to be different.

Aren't there different formats for the X/Y/Z register instructions? I never quite looked at them carefully enough to see whether they could be fixed "easily."

There are also at least two Atmel-compatible assemblers that will run on linux:
avara: http://avra.sourceforge.net/
tavrasm: http://freecode.com/projects/tav...
(Hmm. Neither looks very "current.")