<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Tonas</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature"><a href="http://www.homeschoolmath.net/teaching/md/division-repeated-subtraction.php">http://www.homeschoolmath.net/teaching/md/division-repeated-subtraction.php</a><br><br>Jörg</div><div><br>Am 23.05.2017 um 11:09 schrieb Tomas Kral <<a href="mailto:thomas.kral@email.cz">thomas.kral@email.cz</a>>:<br><br></div><blockquote type="cite"><div><span>Hi,</span><br><span></span><br><span>I am reading chapters on RISC implementation. I managed to</span><br><span>understand multiplication - `MUL' instruction, consisting of shifting x</span><br><span>and adding y to the product.</span><br><span></span><br><span>I seem not understanding the division, chapter 16.2.3.</span><br><span>In the example for x=14, y=4 gives quotient q=4, and the remainder r=2.</span><br><span></span><br><span>But...</span><br><span>q = x DIV y = 3, r = x MOD y = 2</span><br><span>???</span><br><span></span><br><span>-- </span><br><span>Tomas Kral <<a href="mailto:thomas.kral@email.cz">thomas.kral@email.cz</a>></span><br><span>--</span><br><span><a href="mailto:Oberon@lists.inf.ethz.ch">Oberon@lists.inf.ethz.ch</a> mailing list for ETH Oberon and related systems</span><br><span><a href="https://lists.inf.ethz.ch/mailman/listinfo/oberon">https://lists.inf.ethz.ch/mailman/listinfo/oberon</a></span><br></div></blockquote></body></html>