INVOKEVIRTUAL in MIC-1 has 22 lines of code, it has 11 lines of code in MIC-2. There are three types of changes:
For the MIC-1 INVOKEVIRTUAL command,
If there is a choice between marking a statement as being grouped with others or being removed, choose grouped.
Correction: line 5 in Mic-2 should be the same as line 12 in Mic-1. H does not needed to be updated in line 5 of Mic-2.
Show how these instructions would be fed through the seven-stage pipeline for Mic-4.
ILOAD I ILOAD J ISUB ISTORE K
Use MAL to represent the instructions in the ROM.
R3 = R0 / R2
R3 = R3 * R2
R2 = R0 + R1
R0 = R2 / R5
R6 = R3 - R6
R3 = R8 + R0