1. first, your program should load the address of its first instruction (0x4) into a register, and initialize three separate instruction class counters to zero. 2. next, your program should enter a loop that reads each instruction from memory. for each instruction, examine the "op code" field to determine whether it is an r-type, i-type, or j-type instruction, and increment the appropriate instruction class counter. (for the purpose of this assignment, you may assume that all instructions with an op code of 0 are r-type instructions; all instructions with an op code equal to either 2 or 3 are j-type instructions; and all other instructions are i-type instructions.)

Solved
Show answers

Ask an AI advisor a question