Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!