Question: * * Must print from memory, memory cannot be modified more than twice for every line of output. * * Must not calculate N in

** 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 (where @???????? Is your Howard ID), one string in each separate line, where X = ID %9+10. The m-th string is displayed starting at the character at index (m + N)%9(index beginning at 0), where N = ID %7. The last line should NOT be followed by a new line.
For example, if the Howard ID is @12345678, N =12345678%7=2. The first string is displayed starting at the digit 2, as it has the index 2(@ has the index 0). The second starts at the digit 3, third at the digit 4, and so on. The string should be printed for 12345678%9+10=10 times. The 10 strings displayed would be:
2345678@1
345678@12
45678@123
5678@1234
678@12345
78@123456
8@1234567
@12345678
12345678@
2345678@1
In the data section of your program, you are required to have the following content only (replace @12345678 with your own Howard ID):
.data
id: .asciiz @12345678
Requirements:
The program must be able to run correctly under QtSpim.
The program must be named as project_0.s.
The output must have the exact format as specified above. No other messages or prompts should be printed except the ID strings. i have this but its incomplete i need help completing it
 ** Must print from memory, memory cannot be modified more than

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!