Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please explain steps thoroughly. 5. Please complete the assembly language program below to count how many odd digits and how many even digits in your
Please explain steps thoroughly.
5. Please complete the assembly language program below to count how many odd digits and how many even digits in your L number. (12 points) ## Registers: ## $8_-count ## $9-pointer t the array entry ## $10 -- current array entry ## $12 -- ## $13 -- ## $1.4 -- odd or even flag s test odd or even ori $15, $0, 2 count of odd integers count of even integers branch if odd 15length of the array s11 so, $0,0 t branch delay even count++ $13, $13, s0, $0,0 $8, $8, addiu 1 .text .globl main 811 branch delay odd count++ # Initialize ori ori odd: $8, $0,0 $12, so, 0 $13, $O,0 $9,0x1000 $15,0 (9) $9, $9, 4 main: ifend addiu count++ odd count= even c unt= 0 $9, $9, $0, $0, 0 s0, $0,0 t point at next entry t branch delay ttarget for branch addiu lui 1w addiu t point at SIZE # get SIZE t point to first entry 811 # finish done: 811 # 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