I am writing in AVR assembler and have one file containing a bunch of useful macros.
Recently one macro I wrote contains a call to an assembler routine in a separate file
that I .included at some place . That file in turn uses two other macros contained in the macros-file.
This seems to confuse the assembler. I could get it to work only by .including the files in a certain order.
I had to .include the assembler file at the end of the file containing the macros.
If the assembler is truly multi-pass, I would have thought that order of file input to the assembler
would make no difference.
I have noticed on other occasions that the assembler is fussy about order, and particularly at what point I
.include the file of macros.
I am using AS6.1
Can anybody shed any light on this?