very nice to see emails on this list :)

I couldn't agree with you more. :)


> Compiling amforth with avra?
>
> I have made numerous experiments a long time ago and again more
> recently. If memory serves me well:
> - Amforth had been good with avra, at least in the 4.x range.
>

What I am talking about is a fork of the Ro3ert/avra that fixes issues with
the way the macros are called. It seems it was the fault of avra, not
Amforth that was causing the problem. The only problem locally was the 'Y'
vs the 'y' it needed to be. The fork I refer to can be found by looking at
the issues page of Ro3ert's repo and then getting the fix branch. It's
merely a cherry-picked pr. My local Amforth is 6.8 but I think I hand
applied all the stuff that would make it effectively 6.9. Pretty sure about
that.


> - However, avrasm2.exe could do more clever tricks, and Matthias
> started using those.
>

This is interesting. I've not dug deep into the outputted hex files apart
from flashing my controller with them. I do need to look at the addresses
of both hex files to see if there are issues. Part of the thing is that
with avrasm2.exe I was packing my nwwr section to within 5 words of
overflow. I want to see (they should, it is all .asm files) if they live at
the same locations. I should try to use your git repos for that. I have
cloned them locally since I prefer using git than svn.

All that being said, I would be very interested to see the
> changes, maybe, just maybe we can fix the amForth source tree
> enough to make avra happy.
>

It seems that the 'Y' to 'y' fix and the forked branch does do just that.

All the best to the list (and a good finish to the summer)
Mark


> Brian K Navarette <bknavare...@gmail.com> writes:
>
> > That is awesome news!
> > Brian-in-ohio
> >
> >
> > On Thu, Aug 24, 2023 at 2:59 PM Mark Roth <cablegu...@gmail.com> wrote:
> >
> >> Hello AmForth. It has been some time and quite weird things since last
> I've
> >> been here. I am still using AmForth with my trusty atmega1284p and
> learning
> >> the language as time permits. I remember having heard talk that avra had
> >> gotten (almost) to the point of being able to compile the source tree
> here.
> >> First I tried with 1.3 I think and it failed miserably. Then I found a
> repo
> >> on github (Ro5bert/avra) that seemed to almost but not quite do it. I
> was
> >> getting a pile of errors for macro calls. So looking into the issues I
> saw
> >> that someone had forked that repo and fixed the issue. Something to do
> with
> >> not having a space between the opening parenthesis and the macro name.
> So I
> >> tracked down the fix branch (srtlg/avra -b development-issue54 if I
> >> remember correctly) and built that locally. Then substituted that avra
> >> version with the wine one I had been using to build.
> >> It still didn't build. Very almost, but not quite.
> >> However, the issue was with errors in /avr8/words/d-lesszero.asm about
> the
> >> Y register not being declared and/or able to be used for the adiw call.
> >> Looking into the source tree I found other usages of y in those calls
> but
> >> they were all in lower case.
> >> Yeah, that did fix it. I'm not sure that I can flash my controller here
> >> since I'm on summer break but it does seem promising. Or maybe I did
> pack
> >> my programmer and can give it a go. The file sizes are the same or
> similar
> >> but there are differences. Granted, I've made changes that may not be
> >> represented in my working project and it may just be that.
> >> Time will tell but it would be great to get rid of the need to use wine
> to
> >> build AmForth here.
> >> Well well well. It appears to have worked. I make install'd the whole
> thing
> >> (since for some reason I did pack my usbasp and could try it out. I'm
> sure
> >> more testing is needed but this really is pretty cool.
> >>
> >> _______________________________________________
> >> Amforth-devel mailing list for http://amforth.sf.net/
> >> Amforth-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/amforth-devel
> >>
> >
> > _______________________________________________
> > Amforth-devel mailing list for http://amforth.sf.net/
> > Amforth-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/amforth-devel
>
>
> --
> May the Forth be with you ...
>
>
> _______________________________________________
> Amforth-devel mailing list for http://amforth.sf.net/
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel
>

_______________________________________________
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