Question: A programmer is asked to translate the following HLL code into MIPS Assembly language short ali ( ) = { 1 0 , 2 0
A programmer is asked to translate the following HLL code into MIPS Assembly language
short ali ;
string mus:
for int ;;
ali ali ;
for int ;;
cout ali mus ; print value
return ;
The programmer asked you to help him complete the missing statements in the MIPS code. In your
answers, please separate the opcode and the operands by ONE space only as follows: sub $$$
data
ali: half
mus: asciiz
text
globl bonus
bonus:
la $ali
li $
next: Ih $$
Blank
sh $$
addi $$
Blank
bnez $tnext
la $tali
Blank
Go: Ih $$
li $ # print integer
syscall
la $amus
li $
syscall
Blank
addi $$
Blank
Blank # exit program
syscall
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
