Question: Using RVS(RISC-V Visual Simulator) Exercise1 a: Given a sequence of non-zero integers followed by 0, find the biggest integer in the sequence and place the

Using RVS(RISC-V Visual Simulator)
Exercise1
a: Given a sequence of non-zero integers followed by 0, find the biggest integer in the sequence and place the result in x5. Use the DD assembler command to store in the beginning of the memory the initial test sequence of -1, 55, -3, 7, 0.
b: Given a sequence of non-zero integers followed by 0, find the smallest integer in the sequence then swap it with the integer in the beginning of the sequence. Use the DD assembler command to store in the beginning of the memory the initial test sequence of 121, 33, -5, 242, -45, -12, 0.
c: An n-dimensional integer vector can be represented by a sequence of n integers. Use DD assembler commands to store in the beginning of the memory the sample sequences 1, 5, -7, 23, -5 and 3, -2, 4, 11, -7. Sum the corresponding two vectors and store the resulting sequence in the memory right after the code.

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!