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

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!