addu
Do not trap on overflow. multu
Operands are unsigned.
The
mult
instruction assumes two's complement operands.
The program was run by
initializing the PC to 0x400000 and then
pushing F10 (single step) five times.
Here is the final screen of the simulation:
The result is as expected.
5 × 12 - 74 = -14 = 0xFFFFFFF2
The product 5 × 12 = 60ten = 0x3C
remains in lo
.
Use integer division (in base ten) to calculate the quotient and remainder of:
99 / 2 = _______ Remainder ______ 99 / 50 = _______ Remainder ______