Question: Design and implement a MIPS Assembly Language program which reads a machine code file then displays each fields of each instruction according to the instruction
Design and implement a MIPS Assembly Language program which reads a machine code file then displays each fields of each instruction according to the instruction type type (R, I, J). The program must request the name of the input file. Opcodes 0 and 17 are R-type instructions. Which instructions are I-type and J-type? What are the fields of each type? R-Type: opcode: %d, rs: %d, rt: %d, rd: %d, shamt: %d, funct: %d I-Type: ? J-Type: ?
sample machine code for input file:
00111100000000010001000000000001 00110100001010000000000000000000 00111100000000010001000000000001 00110100001011010000000000110000 10001101101011010000000000000000 00100100000010100000000000000001 01000110001001000001000000000000 10101101000010100000000000000000 10101101000010100000000000000100 00100001101010011111111111111110 10001101000010110000000000000000 10001101000011000000000000000100 00000001011011000101000000100000 10101101000010100000000000001000 00100001000010000000000000000100 00100001001010011111111111111111 00011101001000001111111111111001 00111100000000010001000000000001 00110100001001000000000000000000 00000000000011010010100000100000 00001100000100000000000000010111 00100100000000100000000000001010 00000000000000000000000000001100 00000000000001000100000000100000 00000000000001010100100000100000 00111100000000010001000000000001 00110100001001000000000000110110 00100100000000100000000000000100 00000000000000000000000000001100 10001101000001000000000000000000 00100100000000100000000000000001 00000000000000000000000000001100 00111100000000010001000000000001 00110100001001000000000000110100 00100100000000100000000000000100 00000000000000000000000000001100 00100001000010000000000000000100 00100001001010011111111111111111 00011101001000001111111111110110 00000011111000000000000000001000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
