Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MIPS Assembly Languagecan you fix my mistakesThe circles are fixed answers CS264 Computer Organization &Assembly Programming Winter 2018 Quiz#5 The following incomplete program (in the

MIPS Assembly Languagecan you fix my mistakesThe circles are fixed answers image text in transcribed
CS264 Computer Organization &Assembly Programming Winter 2018 Quiz#5 The following incomplete program (in the MIPS assembly language) reads an array of 100 records of employees from the keyboard, one at a time, and stores them in memory according to the ID of the employee, i.e. the employee with ID 5 will be stored in the 6h location. The ID is ranged from 0 to 99 and the records can be entered in any order, i.e. it is not necessary in the ascending order of their indexes (or indices). Each record consists of three data items: index: unique integer; full name: 19 upper and lower case letters; salary: int Complete the program by filling in the blanks. rd: space 2800 Prompti: asciiz "Enter the employee's ID" Prompt2: asciiz "Enter the employee's name Prompt3: asci iz Enter the employee's salary" text listo, 100 last 1,Record main: #StO used as a counter #Sti stores the starting ress of the array b$13, 20, hero, exit read: la Promptl syscall li SvO syscall move St2, $v0 # to determine the address in the array-at which the ID will be stored. mul $t2, addu St2, Stl SvO, a Sao, Prompt2 li Sv0,4 syscall (20 lisa11 ey,Line addiu $12, $12, move SaO, S12 li Sv0, 4X syscall la Sa0, Prompt3 li SvO, 4 syscall li$v0, 5 sw SvO, addi $t0 St0,-1 Sv0,10 syscall end

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

Oracle 11G SQL

Authors: Joan Casteel

2nd Edition

1133947360, 978-1133947363

More Books

Students also viewed these Databases questions

Question

1 . Television News channels importantance of our Life pattern ?

Answered: 1 week ago

Question

6. Be able to choose and prepare a training site.

Answered: 1 week ago