Question: please write a mips program that can successfully run on qtspim using this instructions and producing the exact same output. * * Must print from
please write a mips program that can successfully run on qtspim using this instructions and producing the exact same output.
Must print from memory, memory cannot be modified more than twice for every line of output. Must not calculate N in the program.
Description:
Write a program to print the string @ X times, one string in each separate line, where X ID The mth string is displayed starting at the character at index m Nindex beginning at where N ID The last line should NOT be followed by a new line.
that is: the ID is @ N The first string is displayed starting at the digit as it has the index @ has the index The second starts at the digit third at the digit and so on The string should be printed for times. The strings displayed would be:
@
@
@
@
@
@
@
@
@
@
In the data section of your program, you are required to have the following content only :
data
id: asciiz @
Requirements:
The program must be able to run correctly under QtSpim.
The output must have the exact format as specified above. No other messages or prompts should be printed except the ID strings. the output should be exactly like the one above.
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
