Answered step by step
Verified Expert Solution
Question
1 Approved Answer
THIS IS BY USING MIPS INSTRUCTIONS Problem 2 For this problem you are to use the code below that implements a loop. Let us assume
THIS IS BY USING MIPS INSTRUCTIONS
Problem 2 For this problem you are to use the code below that implements a loop. Let us assume that the code is loaded onto the memory starting at location OX08000 (Ox means that the number that follows is hexadecimal). Please determine the format of each instruction, its location in memory, and its code. Use the table below ori a3, $0, 8 lw $a1, 32($t2) sum: bne $a3, $0, sum_xt sub $5, $5, $7 addi $8, $7,-4 sum sum_xt: lui $4, 1025 Instruction Address Instruction code (Hexadecimal notation) Format (Hex) op rs r t rd shamt funct ori Sa3, $0,8 0x8000 d o 7 lw $a1, 32($12) I 0x800423 bne Sa3,50, sum_xt T ox9.008 s. sub $5, 55, 57 R ox8000 22 35 37 $5 o 22 add $7.57.4 I px folo 8 sum J ox2014 2 lui 54, 1025 I ox2014 f EE334 MIPS Instruction Set Reference Card S A RITHMETIC CORE INSTRUCTION SET OPCODE MTV MIPS Reference Data OPERATION CORE INSTRUCTION SET O - NAVE NOG MAT ORGDOR FP True Belt R F die (1) 0/2 FTAS PRO ACH NAME, M ONIC MAT OPERATION FIL 16-0 PP. C OM 2. Fold bottom side (columns 3 and 4) together Diegle TR FM 43 100 gle . Pull along perforation to separate card A RCHER ll 17 Subangle... PR - Jee Ring leh t AL -14MERIA Lodge well- Led K YMRIN so 25 De Mix Loaded 1 Lopper Moseros siRN - , 16 ) Claren) 10/0 I MIRI 2 Mily wit LLAR NN 0/27 Multiply Upele lej - 04-19 Sua RW 025 Feel Milch 1 One enero) Set Le Than at RRIN RIDI 0 0 Mp4 Setle Thi n g :0 (2) FLOATING POINT INSTRUCTION FORMATS See The Ring See The RH- D10 La Legal OPERATION C- REGISTER NAME NUMBER USE, CALL CONVENTION NAMEN MIPS Reference Data Card ("Green Card) 22 Problem 2 For this problem you are to use the code below that implements a loop. Let us assume that the code is loaded onto the memory starting at location OX08000 (Ox means that the number that follows is hexadecimal). Please determine the format of each instruction, its location in memory, and its code. Use the table below ori a3, $0, 8 lw $a1, 32($t2) sum: bne $a3, $0, sum_xt sub $5, $5, $7 addi $8, $7,-4 sum sum_xt: lui $4, 1025 Instruction Address Instruction code (Hexadecimal notation) Format (Hex) op rs r t rd shamt funct ori Sa3, $0,8 0x8000 d o 7 lw $a1, 32($12) I 0x800423 bne Sa3,50, sum_xt T ox9.008 s. sub $5, 55, 57 R ox8000 22 35 37 $5 o 22 add $7.57.4 I px folo 8 sum J ox2014 2 lui 54, 1025 I ox2014 f EE334 MIPS Instruction Set Reference Card S A RITHMETIC CORE INSTRUCTION SET OPCODE MTV MIPS Reference Data OPERATION CORE INSTRUCTION SET O - NAVE NOG MAT ORGDOR FP True Belt R F die (1) 0/2 FTAS PRO ACH NAME, M ONIC MAT OPERATION FIL 16-0 PP. C OM 2. Fold bottom side (columns 3 and 4) together Diegle TR FM 43 100 gle . Pull along perforation to separate card A RCHER ll 17 Subangle... PR - Jee Ring leh t AL -14MERIA Lodge well- Led K YMRIN so 25 De Mix Loaded 1 Lopper Moseros siRN - , 16 ) Claren) 10/0 I MIRI 2 Mily wit LLAR NN 0/27 Multiply Upele lej - 04-19 Sua RW 025 Feel Milch 1 One enero) Set Le Than at RRIN RIDI 0 0 Mp4 Setle Thi n g :0 (2) FLOATING POINT INSTRUCTION FORMATS See The Ring See The RH- D10 La Legal OPERATION C- REGISTER NAME NUMBER USE, CALL CONVENTION NAMEN MIPS Reference Data Card ("Green Card) 22Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started