Erich,

your results confirm mine - even making the same move of "words/noop.asm" -
5.1 assembles but no terminal prompt (for the 328P).  With 5.0, simply
moving .include "drivers/usart_0.asm" above terminal settings in the
template.asm file eliminates the error and assembles working code.
I have tried your patch as well as Hannu's with the same result.  With 5.0,
the errors are:

Pass 1...
template.asm(45) : Error   : Found no label/variable/constant named bm_ASYNC
template.asm(49) : Error   : Found no label/variable/constant named
bm_ENABLE_TX

With Amforth5.1:

Pass 1...
../../core/drivers/usart_common.asm(28) : Error   : Found no
label/variable/constant named XT_NOOP


When you think about it - this seems odd.  Looking through the various
source code files in avra, in Pass 1 undefined labels/variable/constants
should be blacklisted (so I understand) and sorted out on Pass 2.  A
warning might be issued rather than an error halting assembly. Assembling
the same Amforth's (5.0 or 5.1) using wine+ avrasm(Studio4), warnings are
also issued for these "forward referenced" labels - but assembles ok.  This
might suggest that for whatever reason with avra a flag is throwing an
error rather than a warning... halting assembly.

I also found this patch :
http://www.mail-archive.com/avra-user@lists.sourceforge.net/msg00077.html
which I edited into an instance of avra - thinking it might sort out the
issues.  It's not in the current repository files.  Avra compiled fine with
the patch... but the results for assembling Amforth are the same.

Mark


On Thu, Aug 15, 2013 at 3:23 PM, Marcin Cieslak <sa...@saper.info> wrote:

> On Thu, 15 Aug 2013, Erich Waelde wrote:
>
> > All this just confirms that this particular version of avra is lacking
> > support for "forward references".
>
> Yeah, we need to get it right and quickly release a new version...
>
> //Marcin
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> Amforth-devel mailing list for http://amforth.sf.net/
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel
>
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to