".include" is not fasm syntax. fasm uses "include" without the dot (.) character. fasmg follows this convention also. You can change the source code and remove the leading dot.
Note that all assemblers are different. In general you usually can't assemble unchanged source code from one assembler on another assembler, unless you take specific steps to support it and the assemblers are very similar.
Joined: 16 Jun 2003
Location: Kraków, Poland
At the end of AVR.INC that comes as an example with fasmg you may find a macro that already adds support for some directives starting with dot:
macro?line& match =BREAK?, line
if ~ DSEG?
org (addr) shl1
elsematch.=EQU?name == value, line
name? = value
if ~ DSEG?
DSEG? = 1
DSEG?.$ = $
DSEG? = 0
You could add support for ".include" by adding another clause like:
But still, the AVR example included in fasmg package is only a very simple one and it does not attempt to fully emulate syntax of any other AVR assembler. Someone probably could make a better set of macros for this purpose, but I don't know if anyone tried.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum