Question: Write a RISC - V OTTER assembly language subroutine that reformats a block of memory start at the address passed to the subroutine in a

Write a RISC-V OTTER assembly language subroutine that reformats a block of memory start at the address passed to the subroutine in a0. The original format is signed halfwords; the new format will be unsigned words, which means that all values are stored as the absolute value of their original representation. The subroutine does not reformat/store values that are zero. The number of signed halfwords to reformat is passed to the subroutine in a1; the number of values reformatted is passed back to the calling code in a2.
Minimize the number of instructions in your solution
Don't save or restore context
 Write a RISC-V OTTER assembly language subroutine that reformats a block

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!