>> Matthias Trute <mtr...@web.de> wrote: > Hi, > >> avrasm2 generally does not allow using not-yet-defind >> labels in macros like this. > > really? I doubt it.
To be correct: ifdef returns false for forward references and therefore jmp is assembled by AVRASM2. >> 2) add a nop after "rjmp" in the "jmp_" macro to keep >> sizes of the macro expansion constant. > > That would contradict one of the 2 intentions of > the macro: size savings (the other one is speed). I agree, but... > 3) get an smart jump instruction. ... how do solve the problem: jmp_ A: nop nop A: The final address of A depends on the size of jmp_ expansion, that may be 1 word or 2 words. Size of the jmp_ expansion depends on how for A is. Isn't that a circular reference? //Marcin ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel