Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE VIEW THE IMAGE. the data memory can only be stored in the spots shown and the registers can only go to $t 6 !

PLEASE VIEW THE IMAGE. the data memory can only be stored in the spots shown and the registers can only go to $t6!! edit this code to work for
5
variables it should be able to Input:
527831994
and Output:
431527899
the code: addi $t
0
,
$zero,
8200
# Output locMIPSzy simulator with input and output
The MIPSzy simulator below additionally supports reading from input and writing to output.
InputReady
ENTER SIMULATION
Error: addi $t
7
,
$zero,
8196
.
Invalid register name: $t
7
BegLoop:
addi $t
6
,
$zero,
8192
# Input ready?
lw $t
5
,
0(
$t
6)
beq $t
5
,
$zero, NoInput
addi $t
6
,
$zero,
8196
# Input loc
lw $t
1
,
0(
$t
6)
addi $t
2
,
$zero,
1
sw $t
2
,
0(
$t
0)
# Output to screen
mul $t
2
,
$t
2
,
$t
1
# Times Input
sw $t
2
,
0(
$t
0)
# Output to screen
mul $t
2
,
$t
2
,
$t
1
# Times Input
sw $t
2
,
0(
$t
0)
# Output to screen
mul $t
2
,
$t
2
,
$t
1
# Times Input
sw $t
2
,
0(
$t
0)
# Output to screen
j BegLoop
NoInput: it should meet the following requirments: Create an algorithm to sort a list of up to
5
numbers.
(
Note that you can use brute force to search for the smallest number in the list each time through the loop or implement a sorting algorithm.
)
Implement the program in MIPSzy Assembly language.
Input works by placing the value to be read in from the input box in memory location
8196
and a
1
in memory location
8192
.
If there is no more input a
0
will be placed in memory location
8192
.
as a space delimited list.
Results should be written to memory location
8200
which will cause them to be written to the output window. it also needs to be able to run on zybook and in the comments of the mipzy code add the java or c
+
+
equivelent of the mipszy codeMIPSzy simulator with input and output
The MIPSzy simulator below additionally supports reading from input and writing to output.
InputReady
ENTER SIMULATION
Error: addi $t7, $zero, 8196. Invalid register name: $t7
image text in transcribed

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

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago