Question: You are given two 10 element signed integer arrays (A and B). Array A starts at base address 0x190 and array B starts at base
You are given two 10 element signed integer arrays (A and B). Array A starts at base address 0x190 and array B starts at base address 0x1C0. Use x2 (SP) as the stack pointer for your stack frame. The stack should start at address 0x3E8 and grow down in data memory (0x3E8, 0x3E4, 0x3E0 ...). Assume each of these arrays could have the value zero so DO NOT rely on zero as a null terminator. Use recursion to calculate the sum of the positive elements in the two arrays. Store the result into register x10. Note, recursion requires you to implement stack frames and to recursively solve problems. Solutions done iteratively with not be accepted.

i was able to write the code in C++ please put in assemble risc-v format
#include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
