Question: A programmer is asked to translate the following HLL code into MIPS Assembly language int isa ( ) = { 1 0 , 2 0

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)=8*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 6 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:
la $t0,isa
li $t1,10
next: lw $t9,0($t0)
Blank 1
Blank 2
addi $t0,$t0,4
addi $t1,$t1,-1
Blank 3
la $t0,isa
Blank 4
Go: lw $a0,0($t0)
li $v0,1
syscall
la $a0,hud
li $v0,4
syscall
Blank 5
addi $t1,$t1,-1
Blank 6
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!