Still learning forth , programmed in many other languages (alot of assembler) variable X $AABBCCDD X ! X @
However tell me if I am wrong, you are creating a variable definition for X you are setting this variable X to the address $AABBCCDD and then trying to read a value from this address on to the tos. The problem is that this is a byte address which could trigger a processor exception. I have crashed ESP32Forth in this same way during my RISCV assembler testing. The exception could occur on a read or write misalignment. GForth (I386) handles the exception and is able to resume. Hope this helps, John S On Mon, Jan 5, 2026 at 11:14 AM <[email protected]> wrote: > Hello Martin, John > > It would be great to have AmForth running on an ARM UNO R4, but > I chose the AmForth RISC-V route to explore instead. That being > said, the RISC-V/ARM codebase share quite a lot in the repo, > so this and some of the related material might be helpful. > > https://tjnw.co.uk/amforth-rv/20231107/20231107.html > > There are a number of mistakes I made and blind alleys I've reversed > out of since, but the "Variables behaving oddly" highlights decisions > about flash/ram and dictionary/variable storage that I wish I had > considered earlier than I did. The "solution" in the log entry > is not the one I would advocate now, but it illustrates the issue. > > Best wishes, > Tristan > > > On 2026-01-05 15:42, Martin Kobetic wrote: > > On Mon, Jan 5, 2026 at 10:35 AM <[email protected]> wrote: > > > >> variable X > >> $AABBCCDD X ! > >> X @ > >> > > > > Ah yes, the store (!) reliably kills amforth. I'll investigate. > > > > _______________________________________________ > > Amforth-devel mailing list for http://amforth.sf.net/ > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/amforth-devel > > > _______________________________________________ > Amforth-devel mailing list for http://amforth.sf.net/ > [email protected] > https://lists.sourceforge.net/lists/listinfo/amforth-devel > _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ [email protected] https://lists.sourceforge.net/lists/listinfo/amforth-devel
