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 > $ffff 10 um/mod ok > depth . 1 ok > u. 65535 ok > $ffff 100 um/mod ok > depth . 1 ok > u. 65535 ok > $ffff 0 um/mod ok > depth . 1 ok > u. 65535 ok > $ffff 100 depth . 2 ok > um/mod depth . 1 ok > u. 65535 ok > it seems um/mod simply drops TOS... Paolo --- Questa e-mail è stata controllata per individuare virus con Avast antivirus. http://www.avast.com ------------------------------------------------------------------------------ _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel