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 ( ) = { 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

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

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions

Question

3. Identify the methods used within each of the three approaches.

Answered: 1 week ago