UK: +44 748 007-0908, USA: +1 917 810-5386 [email protected]

C code piece to RISC-V assembly code.

translate following C code piece to RISC-V assembly code.

  1. Assume the base address for B and B2 are in register x22 and x23.
    i is stored in register x5;
  2. You just need to translate the for loop part.

int B[10], B2[10]; // int type, 4 bytes

int i = 0;

for (i = 0; i < 10; i++)

B2[i] = B[i];

Ready to Score Higher Grades?