From: Matthias T. <mt...@we...> - 2008-07-27 06:43:51
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bernard, Bernard Mentink wrote >> please note: heap is not a forth value, it gives only a eeprom >> cell address. > > Hi Matthias, > > Shouldn't heap return the address of the top of heap, you can't > actually use the 4 offset until you use e@ to get the address so it > should be included in the "heap" word. That would also make it ans > compatible right? HEAP itself is not part of ANS94 / I do not find it there at least. Looking at the code that uses HEAP directly, most of them use the sequence "heap e@" so changing it to a real VALUE should be an easy task. > I realize that if you change "heap" then some words that use heap > will have to be re-coded .. Oh, don't worry too much. "most" code use ALLOT (that is part of ANS). heap is pretty much amforth specific. If no-one objects, I'll review most of the EEPROM based variables and turn them into real VALUEs. : allot heap + to heap ; (The sequence could be factored into a word of its own: add-to, , (comma) has a similiar code) Matthias -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIjBko9bEHdGEMFjMRAtwoAJ4sy3AJXIGmDc2Ko/H7Zu/7YphYfwCfWXiB 2bnBWFDqT7sDzUtjVfK87vo= =K81d -----END PGP SIGNATURE----- |