From: Kalus M. <mic...@on...> - 2010-09-30 20:13:27
|
Hi Pito. Am 30.09.2010 um 21:15 schrieb pito: >>> float is an assembler defined word, or is it >>> colon definition? > it is Leon's word - the colon definition, not an assembler word. > See Leon's lib > http://github.com/lnmaurer/amforth-float/blob/master/float.fth > > P. Hm, I see. Very strange, definition looks ok. Have no amforth-4.2 installed jet, maybe do it next days. PS: In float.fth I found: \ STACK MANIPULATION WORDS \ DOESN'T WORK? : f>r ( f -- , R: -- f ) >r >r ; \ DOESN'T WORK? : fr> ( -- f, R: f -- ) r> r> ; .. This indeed won't work. Use 2>r and 2r> instead, they are provided in core/words allready. Maybe you like this littel brainteaser: http://www.forth-ev.de/wiki/doku.php/enigmatic:to-r_r-from :-) Michael |