Question
Mars4 5.jar: MARS MIPS simulator Download of Mars4.5: http://courses.missouristate.edu/KenVollmar/mars/download.htm P6.asm # Problem 6: subroutine 1 # Write an assembly subroutine that check if a number
Mars4 5.jar: MARS MIPS simulator
Download of Mars4.5: http://courses.missouristate.edu/KenVollmar/mars/download.htm
P6.asm # Problem 6: subroutine 1 # Write an assembly subroutine that check if a number is in # the interval of [0, 10] and return 1 if the number is in this # interval and 0 otherwise. Call this subroutine to check if each # integer in an array in the memory is in this interval and write the # results of all numbers into another array in the memory. .data array: .word 1,3,5,7,9,11,13,15,17,19 result: .word 0,0,0,0,0,0,0,0,0,0 .text # write your code here
Problem 6: subroutine 1 Write an assembly subroutine that check if a number is in the interval of [0, 10 and return 1 if the number is in this interval and 0 otherwise. Call this subroutine to check if each integer in an array in the memory is in this interval and write the results of all numbers into another array in the memoryStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started