From: Bernard M. <bme...@gm...> - 2008-07-24 23:12:38
|
Hi All, I am trying to implement a word that allocates a word on the heap, stores a value in it, and returns it's RAM address. The word is : >RAM ( x -- addr ) HEAP 1 CELLS ALLOT TUCK ! ; The question is regarding amforths implementation of heap and allot. I believe it uses the eeprom to save the address i.e "heap e@" returns the RAM address of the top of heap? If this is correct, then should the code line above be : >RAM ( x -- addr ) HEAP e@ 1 CELLS ALLOT TUCK ! ; Thanks, Bernard Mentink |