go to previous page   go to home page   go to next page hear noise

Answer:


A Run of the Program

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:

A Run of the Program

The result is as expected.

5  × 12 - 74 = -14 = 0xFFFFFFF2

The product 5 × 12 = 60ten = 0x3C remains in lo.


QUESTION 8:

Use integer division (in base ten) to calculate the quotient and remainder of:

99 /  2   =    _______ Remainder ______ 

99 / 50   =    _______ Remainder ______