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 true.
> Here is a test session:

You should add a dot to the first number. It has to be a double cell 
one. Your examples are all single cell ones.

> it seems um/mod simply drops TOS...

It just temporarily underflows the data stack,

Matthias

------------------------------------------------------------------------------
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to