[Flashforth-devel] Strange behavior DO ... LOOP
Brought to you by:
oh2aun
From: Oleg V. <mer...@gm...> - 2017-04-10 22:29:11
|
Hello, Mikael Nordman. I recently started more closely studying the FORTH language with which I met Even in my childhood when the first 8-bit computers appeared. Now when Microcontrollers have become more powerful than the first 8-bit computers FORTH Starting to gain momentum and I found your compiler which I really liked. I read various books on the FORTH language and try examples and tasks from books Execute on your version of FlashFORTH. There are many examples and tasks where The base statement of a cycle in language FORTH is used is DO ... LOOP, But FlashFORTH does not have such an operator, but I found the "avr / forth / doloop.txt" file which adds the possibility of using the DO ... LOOP operator in FlashFORTH. "doloop.txt" is perfectly compiled without errors, but when trying to use In their definitions of op. DO's words, for example : do_test cr 10 0 do i. cr loop; when you try to execute do_test hangs tightly. And I tried it On different boards arduino UNO, arduino MEGA and just on Atmega128, the result the same. But I found the old version of FlashFORTH on 06.07.2015 and so It all works fine! Therefore, I have a question for you as a developer Is there something I'm doing wrong or is it some kind of bug in new versions of FlashFORTH? I also have this question, as far as I understand FlashFORTH can address A maximum of 64Kb of Flash memory because the size of cell = 16 bit and the operation Read and Write will only work within the low 64KB Flash, ie There is no sense in using microcontrollers with Flash memory > 64kb such as Atmega128, Atmega2560 or it is possible to access Flash memory > 64kb for example for storing text strings of the menu or other similar information? P.S. Sorry for my bad English. All the best, Oleg. |