This program finds the GCD of given two numbers and stores it in the register. Algorithm. 1) Store the num1 in R1 register and num2 in R2 register. 2) Compare whether num1>num2 and directly store result if num1=num2. 3) If num1>num2 assign numerator register to num1 and denominator register to…