[Flashforth-devel] data sections
Brought to you by:
oh2aun
From: Christopher H. <chr...@li...> - 2021-04-12 22:44:57
|
Hi, I'm kind of new to forth in general, so bear with me: but I see in FF the effect of `,' and `c,' and `allot' are affected by which data section is set. I was wondering if there was a way in FF to determine what data section is currently set, so you could restore that setting after changing it. The use case I was thinking of would be if I had a word which temporarily allots some array space in ram to perform some matrix calculations or whatever. My word can't really assume that data section is already pointing to ram. But if I set it to point to ram, I might be destroying the previous state. I see in the reference that there is a special word 'i,' for allot'ing just to flash data section, but I also see there aren't words like 'r,' or 'rallot'. |