I have been trying for hours to assemble FlashForth for the Arduino
Uno. Soon I would like to compile to have it use the serial port (for
an RS-232 console) but as my starting point I am trying to assemble the
downloaded ff-atmega.asm file to generate the downloaded hex file. It
seems like this should be both trivial and documented by one or two
paragraphs on the download page that contains the source and hex.
I have downloaded the AVR Studio for Windows, the Atmel 8-Bit AVR
toolchain for Linux, avra for Linux and one or two other assemblers. So
far the best I have been able to do is about 40-50 errors and warnings
when using avra. If I recall correctly the error count was well over a
thousand with Atmel AVR Studio. The downloaded Atmel toolchain also had
a lot of reported errors.
What assembler works? What assembler did the FlashForth developer(s) use?
It looks like the code may have been assembled in a C environment since
there is a comment in it that is commented out by a double slash. Some
of my reported errors are also due to "strlen" in the source which again
suggests a "C" environment to me. High in the downloaded listing file
is "AVRASM ver. 2.1.30 avr/src/ff-atmega.asm Wed Mar 22 22:08:36 2017"
but AVRASM isn't in the toolchain I downloaded from Atmel.
Linux is by far my preferred OS but I can use Windows if necessary.
I'm just trying to get started. Thank you for your help.
|