Hey there,
I am writing MIPS assembly for computing the gcd of two given numbers (recursively), but am struggling!
I vaguely understand changing the frame point counter, stack pointer etc. but I'm really at sea with how to implement the algorithm recursively (e.g. how to check if each number is even or odd, then somehow call the code again and again until input1=input2)
Any assistance will be very appreciated!
Thanks
nikki_2000b@hot 0 Newbie Poster
Duoas 1,025 Postaholic Featured Poster
nikki_2000b@hot 0 Newbie Poster
Duoas 1,025 Postaholic Featured Poster
Striker9 0 Newbie Poster
Duoas 1,025 Postaholic Featured Poster
nikki_2000b@hot 0 Newbie Poster
Duoas 1,025 Postaholic Featured Poster
nikki_2000b@hot 0 Newbie Poster
bStiffler582 0 Newbie Poster
Duoas 1,025 Postaholic Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.