embedded systems developers tools, cross compilers
  Home  |   SwiftX Archive  |   SwiftForth Archive  |

Re: Data storage in paged memory (was DOES>Woes)

From: David Graham <dgraham_at_grahamautomationinc.com>
Date: Sat, 10 Jan 2004 17:13:12 -0700

OK, I think it is sinking in. Is it as simple as sections control where
code is stored, and section types control where data is stored?

So why can't I read data stored with , and ," after Page2 CDATA?

David Graham

<snip>

No, it is absolutely not redundant.

PAGE2 selects the current CDATA instance, but does not force CDATA to be
the current section type. This ia a very important distinction. Having
PAGE2 automatically switch you from IDATA to CDATA (at least the way I
use
sections) would be a bad side effect! Executing PAGE2 means I'm going
to compile code in that section. But the place I'm putting *data* isn't
changed.

Keep in mind that there are three section types (CDATA, IDATA, and
UDATA). And there may be multiple instances of each type. There are two
levels at work here, and their selection mechanisms operate
independently, as they must!

----------------------------------------------------------------------
swiftx_at_forth.com The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe" to swiftx-request_at_forth.com
For list command help, send subject "help" to swiftx-request_at_forth.com
Message archives are located at http://www.forth.com/archive/swiftx
----------------------------------------------------------------------
This list is a forum for SwiftX users. For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Sat Jan 10 2004 - 16:15:36 PST

This archive was generated by hypermail 2.2.0 : Fri Dec 05 2008 - 03:04:22 PST