Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MIPS question: .data .half 6, 2 num: .word 7 .globl main .text main: lui $t1, 0x1001 top: lw $t2, -4($t1) beq $s1, $s3, end jal

MIPS question:

.data

.half 6, 2

num: .word 7

.globl main

.text

main:

lui $t1, 0x1001

top:

lw $t2, -4($t1)

beq $s1, $s3, end

jal func

add $s1, $s2, $t1

andi $s1, $0, 0xFFFF

j top

bne $s1, $0, top

end:

func:

sll $v0, $t2, 4

jr $ra

assume (.data starts @ 0x10010000), (.text 0x00400400)

1- find lables values?

2- find the addressing mode of all instructions.

3- convert the program to machine code (hex).

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

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

More Books

Students also viewed these Databases questions

Question

Discuss the various types of policies ?

Answered: 1 week ago

Question

Briefly explain the various types of leadership ?

Answered: 1 week ago

Question

Explain the need for and importance of co-ordination?

Answered: 1 week ago

Question

Explain the contribution of Peter F. Drucker to Management .

Answered: 1 week ago