[Amforth] UM/MOD

2015-05-29 Thread Paolo Garro
Hi Matthias, Thank you for kind answers, I have to think twice before write... Paolo -Messaggio originale- From: Matthias Trute Sent: Friday, May 29, 2015 9:22 PM To: Everything around amforth Subject: Re: [Amforth] UM/MOD > (ud u2) are 3-cells not 2, so I was wrong. > > Please forget

Re: [Amforth] Floating point - All_math library in asm

2015-05-29 Thread pito
Hi Matthias, yea, you both share Leon's code (in some stripped down version w/ FF), which is neither amforth nor FF related. Otherwise the FF floating point follows the other approach - it calls C math functions, and the current implementation of that stuff comes from https://github.com/igor-m/F

Re: [Amforth] UM/MOD

2015-05-29 Thread Matthias Trute
> (ud u2) are 3-cells not 2, so I was wrong. > > Please forget my previous message. > There is no stack underflow raised. There is no check whether there are enough data items on the stack available. The stack underflow happens only inside um/mod. The interpreter checks the stack only after the

Re: [Amforth] Floating point - All_math library in asm

2015-05-29 Thread Matthias Trute
Am Donnerstag, den 28.05.2015, 23:56 +0200 schrieb pito: > Hi, there is a "complete fp asm lib" for amforth at > https://github.com/igor-m/Amforth-Floating-Point-in-ASM Cool stuff btw: flashforth from Mikael Nordman ported the FP code and it runs now on a PIC as well. Thanks to the GPL (v3). We s

Re: [Amforth] 0 For-next in amforth

2015-05-29 Thread Matthias Trute
Am Freitag, den 29.05.2015, 01:32 +0200 schrieb pito: > Hi, I've seen your work in progress includes the for-next loop. > I do not have amforth hw handy these days, but I would be interested to know > what the amforth prints with > > : test 0 for i . next ; It prints a lonely 0 . Under the hood

Re: [Amforth] a small forth project

2015-05-29 Thread Matthias Trute
> Any updates I might have missed on the avra/native *NIX assembler for AVR? > I see a bit of activity on the avr mailing list but I'm still getting the > impression avra is out of date. I think avra is a dead horse, not even a zombie any more. I tried naken_asm, but could not make it work wit

Re: [Amforth] UM/MOD

2015-05-29 Thread Matthias Trute
Hi, Am Freitag, den 29.05.2015, 13:01 +0200 schrieb Paolo Garro: > Hello, > the amforth reference guide says: > > um/mod ( ud u2 โ€“ rem quot) unsigned division ud / u2 with remainder > > so: two-numbers um/mod should leave two-numbers on the stack, remainder an > quotient. > This seems not to be

Re: [Amforth] New Section: Commented Projects

2015-05-29 Thread Matthias Trute
Dennis, > You should link to my GitHub repository at > https://github.com/DRuffer/coinForth rather than the older version of > my paper. > > > The newer version of that document is at coinForth/doc/ARD101/ARD101.pdf Thanks for the update (and the nice work) Matthias ---

[Amforth] UM/MOD

2015-05-29 Thread Paolo Garro
Ops... the reference was rigth: um/mod ( ud u2 โ€“ rem quot) unsigned division ud / u2 with remainder (ud u2) are 3-cells not 2, so I was wrong. Please forget my previous message. There is no stack underflow raised. Paolo --- Questa e-mail รจ stata controllata per individuare virus con Avast anti

[Amforth] UM/MOD

2015-05-29 Thread Paolo Garro
Hello, the amforth reference guide says: um/mod ( ud u2 โ€“ rem quot) unsigned division ud / u2 with remainder so: two-numbers um/mod should leave two-numbers on the stack, remainder an quotient. This seems not to be true. Here is a test session: amforth 5.8 ATmega16 > depth . 0 ok > $ 10 um/