Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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 count

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven Databases In Seven Weeks A Guide To Modern Databases And The NoSQL Movement

Authors: Luc Perkins, Eric Redmond, Jim Wilson

2nd Edition

1680502530, 978-1680502534

More Books

Students also viewed these Databases questions

Question

Discuss the techniques of sales forecasting.

Answered: 1 week ago

Question

Write short notes on Marketing mix.

Answered: 1 week ago