Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given the following segment of a MIPS assembly code and its corresponding machine code. Fill in the blanks assuming the message1 occupies 33 characters and

Given the following segment of a MIPS assembly code and its corresponding machine code. Fill in the blanks assuming the message1 occupies 33 characters and stored in locations 0x11110000-0x1111020 and message2 follow message1.

Location Machine Code Assembly Program

0x00400000 0x3402 ________ loop: li $v0, -7

0x00400004 0x3c04_________ la $a0, message1

0x00400008 0x1844_________ blez $v0, next

0x0040000c 0x3408_________ li $t0, 2

0x00400010 0x01024020 : add $t0,$t0,$v0

0x00400014 0x1440__________ bnez $v0, loop

0x00400018 0x3c01___________ next: la $a0, messge2

0x0040001c 0x3424_________

Can someone please explain how each assembly code translates to the corresponding machine code?

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

Spatial Databases With Application To GIS

Authors: Philippe Rigaux, Michel Scholl, Agnès Voisard

1st Edition

1558605886, 978-1558605886

More Books

Students also viewed these Databases questions