Recursion greatest common divisor in MIPS
问题 In MIPS, I am trying to calculates the greatest common divisor (GCD) of pairs of positive integer numbers using the Euclidean algorithm. For example, the GCD of 6 and 9 is 3, while the GCD of 10 and 25 is 5. The C code is something like this uint32_t m_w = 50000; uint32_t m_z = 60000; uint32_t hcf(uint32_t n1, uint32_t n2) { if (n2 != 0) return hcf(n2, n1%n2); else return n1; } And I am writing the MIPS program and I am not sure how to use n1 % n2. And this is my first time to do the