Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!willett!ForthNet From: ForthNet@willett.UUCP (ForthNet articles from GEnie) Newsgroups: comp.lang.forth Subject: Forth Engines / Harris Message-ID: <905.UUL1.3#5129@willett.UUCP> Date: 6 May 90 03:55:27 GMT Organization: Latest link in the ForthNet chain. (Pgh, PA) Lines: 34 Date: 05-04-90 (11:27) Number: 484 (Echo) To: ALL Refer#: NONE From: PETE KOZIAR Read: (N/A) Subj: RTXEB NOTE Status: PUBLIC MESSAGE One thing I got bitten by in my programming the RTXEB is that it allocates code and data spaces separate. This means that CREATE...ALLOT doesn't do what it usually does. Here's an example: CREATE GOO 20 ALLOT : FOO ... ; What this does is create something called GOO, which returns the current address in CODE SPACE, which will turn out to be the body of FOO! The 20 ALLOT was in data space, which we wind up not being able to get to. There may be a better way to do this, but this works for me: VARIABLE GOO 18 ALLOT : FOO ... ; This way, GOO returns the current place in data space. The use of VARIABLE already ALLOTs 2 bytes, so we subtract that from the amount of bytes we need for our storage. He who has ears, let him hear. Before I figured this out, it near drove me nuts. --- * Via Qwikmail 2.01 The Baltimore Sun ----- This message came from GEnie via willett through a semi-automated process. Report problems to: 'uunet!willett!dwp' or 'willett!dwp@gateway.sei.cmu.edu'