flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
El Tangas 20 Jul 2015, 11:28
I've been playing a bit with some AVR programming, using Atmel Studio 6, which IMHO is overbloated and slow.
So I thought: why not make AVR instruction macros and assemble with FASM? After working on it for almost a week, I finished a more or less working version yesterday, only to find out about the existence of this new fasm g thing (actually been around for several months and I didn't notice) already with an AVR module ![]() It's better than what I made in almost every aspect: generates hex output, mine only binary; optimizes jumps; is case insensitive. And error checking, mine mostly trusts the programmer ![]() So duuuhh ![]() But anyway, my version as a strong point: it accepts more flexible operand forms for adiw, sbiw and movw 16 bit instructions: Code: ;16 bit operand aliases r26:r27 r27:r26 x xl:xh xh:xl r26 xl All these forms are synonymous, I copied this behavior from the AtmelStudio assembler. So, now I go to read the manual for fasm g and leave you with my version of the AVR coding example from fasm g (using my fasm macros). I'm sure my macros have some bugs, so if anyone has some AVR code to test, I'll be thankful.
|
|||||||||||
![]() |
|
El Tangas 20 Jul 2015, 22:10
shoorick wrote:
Yes, I know. I guess I will just improve on the fasm g version when I understand the language. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.