Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

NOTE: PLEASE SHOW ALL WORK Use the following program for this question. Assume the .data section starts at 0x10010000 and the .text starts at 0x00400010.

image text in transcribed

NOTE: PLEASE SHOW ALL WORK

Use the following program for this question. Assume the .data section starts at 0x10010000 and the .text starts at 0x00400010. Notice for this problem the starting PC will NOT be the default value so if you just type the code into the assemble, your answers may not be correct. .data num: .word 7 .globl main .text main .text main: lui $t0, 0x1001 top: lw $t1, 0($t0) beq $s0, $0, end jal func add $s0, $s0, $t0 addi $s0, $s0, -1 j top bne $s0, $0, top end: func: s11 $v0, $t1, 4 jr $ra There are five labels in the code. What is the value of each label? What is the addressing mode for each instruction? There are 10 unique instructions. Encode the program and give the machine code in hex. Be careful with the branch and jump instructions

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

Intelligent Information And Database Systems 12th Asian Conference ACIIDS 2020 Phuket Thailand March 23 26 2020 Proceedings

Authors: Pawel Sitek ,Marcin Pietranik ,Marek Krotkiewicz ,Chutimet Srinilta

1st Edition

9811533792, 978-9811533792

More Books

Students also viewed these Databases questions

Question

4. What action should Cherita Howard take and why?

Answered: 1 week ago