Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. Look at the following MIPS assembly code. For the beq instruction, when the condition is true and the branch is taken, the new PC

image text in transcribed

4. Look at the following MIPS assembly code. For the beq instruction, when the condition is true and the branch is taken, the new PC (Program Counter) is set to 80000020hex Where should be the beq instruction located in the memory? (i.e. What is the memory address of the beq instruction?) And, what is the content of that memory location? (i.c. What is the machine code of the instruction in that specific memory address? You can refer to the text book or reference sheet) Also, where is the j instruction located in the memory and what is the content of that memory location? (2000) Loop: addi tl, $tl, -4 Memory AddressMemory Content slt $t2, $tl, ?zero beq $t2, $zero, Exit sub $s3, $s3, $t1 Loop Memory Address Memory Content Exit: 4. Look at the following MIPS assembly code. For the beq instruction, when the condition is true and the branch is taken, the new PC (Program Counter) is set to 80000020hex Where should be the beq instruction located in the memory? (i.e. What is the memory address of the beq instruction?) And, what is the content of that memory location? (i.c. What is the machine code of the instruction in that specific memory address? You can refer to the text book or reference sheet) Also, where is the j instruction located in the memory and what is the content of that memory location? (2000) Loop: addi tl, $tl, -4 Memory AddressMemory Content slt $t2, $tl, ?zero beq $t2, $zero, Exit sub $s3, $s3, $t1 Loop Memory Address Memory Content Exit

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

Students also viewed these Databases questions