Question: Please complete the following assembly language program by filling in the blanks. This program counts how many odd and even digits are in the numbers:

Please complete the following assembly language program by filling in the blanks. This program counts how many odd and even digits are in the numbers:

L1 = 1, L2 = 2, L3 = 3, L4 = 4, L5 = 5, L6 = 6, L7 = 7, L8 = 8

Lnumber = 12345678. It has been saved at the symbolic address array in the data section.

Please complete the following assembly language program by filling in the blanks.

## Registers: ## s8-count ## $9 -_ pointer to the array entry ## $10 -- current array entry ## S12 -- count of odd integers ## $13 -- count of even integers ## S14-. odd or even flag ## $15-length of the array t test odd or even ori 15, 0, 2 branch if odd so, so,o $13, $13, 911 tbranch delay teven count++ addiu 1 .text .globl main s0, $0,0 tbranch delay todd count # Initialize ori ori odd: ifend: addiu 8, $8, s8, so,o 12, s0,0 13, so,0 $9,0x1000 $15,0 (S9) $9, $9,4 main: scount- count++ # dd count. 0 teven count-0 # point at SIZE # get SIZE addiu $9,$9 lui lw addiu # point at next entry tbranch delay t target for branch so, $0,0 # finish done: point to first entry s11 so, $0, # 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!