Learn with SHAKTI
CS2610: Assembly Language Lab
Compute Matrix C = A & B
N X N matrix of 64 bit number Matrix A is stored from address 1000 to 1000 + N^2 - 1 Matrix B is stored from address 1000 + N^2 to 1000 + 2*N^2 - 1 Matrix C is stored from address 1000 + 2*N^2 to 1000 + 3*N^2 - 1 in row major order.
Write a C code and translate it to RISC-V assembly
Please use the following RISC-V assembly instructions: and, ld, sd, beq, bge,bgen, blt, bltu, bne, add, addi, andi