Question: 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

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 count

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!