Am Dienstag, den 06.11.2018, 17:41 +0000 schrieb Jan Kromhout: > Hi, > > When I use for example gforth I can use the c, word. I wont to use > this also in amForth in combination with c@.
It's a bit more complex... , (comma) appends to the dictionary in flash memory. c@ cannot access the flash address space, the hardware is Harvard oriented. It would require a c@i word. But: A flash address contains a 16bit word, not only a byte. That makes it possible to have a flash dictionary of 128KB with a 16 bit address. A c@i would have to use 17bit addresses (16bit normal plus one bit to distinguish between upper and lower byte of the word). > The word c, is not available, how to do this. I think this is a good > way to use not so much memory. You may want to read the code for the string compilations. It's not trivial but works and offers the "compaction" of bytes (characters) into the bigger flash address elements. look for itype and s, or the heaeder construction words. The assembly syntax should be easy to understand. Matthias _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel