Hi Vladimir, > Here is something wrong. > > > cold > amforth 5.2 ATmega32A 16000 kHz > reset source= 0 > > > s" __the_string_" type > __the_string_ ok > > s" __the_string_" > ok > > type > e_the_string_ ok
Strings from the s" in interpreter mode live only as long as the command line is parsed. They are not copied elsewhere. So the one-line prints the string correctly, the two-liner uses the address/len from the definition in the first line to print the content of the second one (the first e is the last character of the type command) In compile mode the string defined by s" gets copied to the flash. : test s" _the string" itype ; will work as expected (prints '_the string'). As a general rule: s" strings must be used within the same line when interpreted. The tiny controllers simply do not have enough RAM... Matthias ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel