Page 1 of 1

Write a RISC-V assembly program that finds the greatest common divisor of two numbers, a and b, according to the Euclide

Posted: Thu May 05, 2022 12:41 pm
by answerhappygod
Write A Risc V Assembly Program That Finds The Greatest Common Divisor Of Two Numbers A And B According To The Euclide 1
Write A Risc V Assembly Program That Finds The Greatest Common Divisor Of Two Numbers A And B According To The Euclide 1 (52.48 KiB) Viewed 27 times
code required
Write a RISC-V assembly program that finds the greatest common divisor of two numbers, a and b, according to the Euclidean algorithm. The Rvfpga_Lab03.pdf contains example RISCV assembly instructions to help you code. The instructions are very similar to MIPS instructions This assembly code should run in a loop repeatedly reading at least 10 different input values of a and b. The output 'c', (the GCD) after each loop iteration should be displayed in the memory. So, run this in "Step over" mode.