Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A programmer is asked to translate the following HLL code into MIPS Assembly language int isa()= {10,20,30,-5,-15,40,50,-88,19,-33}; string hud=***; for (int k=0;k <10;k++) isa(k)=4*isa(k); for

A programmer is asked to translate the following HLL code into MIPS Assembly language

int isa()= {10,20,30,-5,-15,40,50,-88,19,-33};

string hud="***";

for (int k=0;k<10;k++)

isa(k)=4*isa(k);

for (int k=0;k<10;k++)

cout << isa(k) << hud ; // print value

return 0;

The programmer asked you to help him complete the missing 10 statements in the MIPS code. In your answers, please separate the opcode and the operands by ONE space only as follows: sub $t9,$t8,$t5

.data

isa: .word 10,20,30,-5,-15,40,50,-88,19,-33

hud: .asciiz "***"

.text

.globl bonus

bonus:

Blank 1

li $t1,10

next: Blank 2

Blank 3

Blank 4

addi $t0,$t0,4

addi $t1,$t1,-1

Blank 5

la $t0,isa

Blank 6

Go: lw $a0,0($t0)

Blank 7

syscall

la $a0,hud

li $v0,4

syscall

Blank 8

Blank 9

Blank 10

li $v0,10 # exit program

syscall

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

Creating A Database In Filemaker Pro Visual QuickProject Guide

Authors: Steven A. Schwartz

1st Edition

0321321219, 978-0321321213

More Books

Students also viewed these Databases questions

Question

4. Why is it that correlations do not imply causation?

Answered: 1 week ago