Question: Please use MIPS as assembly language. Problem 4 Consider the design of a RISC (Reduced Instruction Set Computer) processor with the following features: -Instructions: ADD,

Please use MIPS as assembly language.
Problem 4 Consider the design of a RISC (Reduced Instruction Set Computer) processor with the following features: -Instructions: ADD, LOAD, STORE, HALT -Instruction Format: Two address instruction format -Registers: RO, R1, R2, and R3 -Addressing Modes: Immediate, Direct, and Register, where instruction ADD uses register mode to add two numbers, instruction LOAD uses either immediate or direct mode to load a register, and instruction STORE uses direct mode to save a register in the memory. -Memory Size: 4K words a) Formulate an instruction format for this processor by identifying its fields, and number bits per field, and op codes for instructions, binary codes for registers, and binary codes for addressing modes. (4 points) b) Write an assembly code to evaluate expression X= A+B+C using instruction set of the above processor. (3 points) c) Obtain binary code for instruction LOAD R2, 5, where second operand 5 uses direct addressing mode. (3 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
