Question: Write a RISC - V OTTER assembly language subroutine that reformats a section of memory and does some outputting as necessary. The start of the
Write a RISCV OTTER assembly language subroutine that reformats a section of memory and does some outputting as necessary. The start of the section of memory is passed to the subroutine in x and contains unsigned halfwords. If a given halfword is nonzero, that halfword is written to port address xF; the data at that address is then cleared written with a zero This reformatting ends after the subroutine encounters nonzero values. The subroutine passes back the number of halfwords examined in x
Minimize the number of instructions in your program
Comment your code appropriately
Don't permanently change any register other than x
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
