From: Bernard M. <bme...@gm...> - 2008-07-27 00:42:53
|
>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? I realize that if you change "heap" then some words that use heap will have to be re-coded .. Cheers, Bernard On Fri, Jul 25, 2008 at 5:21 PM, Matthias Trute <mt...@we...> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Bernard Mentink schrieb: > > > > If this is correct, then should the code line above be : >RAM ( x -- > addr ) > > HEAP e@ 1 CELLS ALLOT TUCK ! ; > > with : tuck swap over ; you are right ;=) > > please note: heap is not a forth value, it gives only a eeprom > cell address. > > Matthias > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFIiWLU9bEHdGEMFjMRAqSQAJ9epDtgzM6JaVoVhMLRBombtBpXgACfUxwW > 8wVrcO0fOw15IOJ3sthiwJg= > =EWlX > -----END PGP SIGNATURE----- > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Amforth-devel mailing list > Amf...@li... > https://lists.sourceforge.net/lists/listinfo/amforth-devel > |