Question: Write a MIPS Assembly program that prints the numbers from the given array, that are divisible by 3 The output should be one number per

Write a MIPS Assembly program that prints the numbers from the given array, that are divisible by 3

The output should be one number per line, no spaces before or after the numbers:

3

15

33

... (all the numbers in the array that are divisible by 3)

.data ############# # Add any required data for your code here # array: .word 3, 15, 8, 32, 33, 21, 14, 9, 11, 6 length: .word 10

.text main:

############################################### # Create a loop that goes through the numbers in the array # and print only the ones that are divisible by 3. # Please print one number per line # like this: # 3 # 15 # 33 # .. etc (dont put spaces before or after the numbers, just the number) # # Write your code here

# Exit the program li $v0, 10 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!