[Oberon] FPGA - RISC multiply/divide

Tomas Kral thomas.kral at email.cz
Tue May 23 11:09:26 CEST 2017


Hi,

I am reading chapters on RISC implementation. I managed to
understand multiplication - `MUL' instruction, consisting of shifting x
and adding y to the product.

I seem not understanding the division, chapter 16.2.3.
In the example for x=14, y=4 gives quotient q=4, and the remainder r=2.

But...
q = x DIV y = 3, r = x MOD y = 2
???

-- 
Tomas Kral <thomas.kral at email.cz>


More information about the Oberon mailing list