Answered step by step
Verified Expert Solution
Question
1 Approved Answer
[L = any 8 digit number] MUST BE DONE in MIPS assembly language. Please complete the assembly language program below to count how many odd
[L = any 8 digit number]
MUST BE DONE in MIPS assembly language.
Please complete the assembly language program below to count how many odd digits and how many even digits in your L (12 points) ## Registers ## s8-count ## S9-pointer to the array entry ## S10-current array entry ## S12-count of odd integers ## $13-count of even integers ## S14-. odd or even flag ## S15 -- length of the array t test odd or ever ori 15, s0, 2 t branch if odd # branch delay 511 $o, $0,0 addiu $13, 13, 1 t even count+ .text globl main 811 s0, S0,0 t branch delay todd count s count++ # point at next entry # Initialize main: odd: ifend: addiu s8, so,o $12, $0,0 $13, so,o $9, 0x1000 $15, 0 (9) $9, s9,4 tcountO ori oz1 0xi lui lw addiu $8,$8,- odd count-0 t even count-o # point at SIZE # get SIZE # point to first entry s11 s0, $0,0 t branch delay # finish done: so, s0,0 # target for branch # while countStep 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